Fixed Segv in nacm write when MERGE and creating object
This commit is contained in:
parent
35808c8352
commit
a57dbfc6f0
3 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue