Fixed Segv in nacm write when MERGE and creating object

This commit is contained in:
Olof hagsand 2019-08-09 14:20:38 +02:00
parent 35808c8352
commit a57dbfc6f0
3 changed files with 4 additions and 2 deletions

View file

@ -492,7 +492,7 @@ text_modify(clicon_handle h,
}
if (x0==NULL){
if (op==OP_MERGE && !permit && xnacm){
if ((ret = nacm_datanode_write(NULL, x0, x0?NACM_UPDATE:NACM_CREATE, username, xnacm, cbret)) < 0)
if ((ret = nacm_datanode_write(NULL, x1, NACM_CREATE, username, xnacm, cbret)) < 0)
goto done;
if (ret == 0)
goto fail;