* Fixed: [Non-obvious behavior of clixon_snmp after snmpset command when transaction validation returns an error](https://github.com/clicon/clixon/issues/375)
* Changed `clicon_rpc_commit()` and `clicon_rpc_validate`: Added three-value return.
This commit is contained in:
parent
d29c81fce0
commit
575429caa1
5 changed files with 70 additions and 20 deletions
|
|
@ -664,7 +664,7 @@ cli_commit(clicon_handle h,
|
|||
persist = cvec_find_str(vars, "persist-val");
|
||||
persist_id = cvec_find_str(vars, "persist-id-val");
|
||||
|
||||
if ((retval = clicon_rpc_commit(h, confirmed, cancel, timeout, persist, persist_id)) < 0)
|
||||
if (clicon_rpc_commit(h, confirmed, cancel, timeout, persist, persist_id) < 1)
|
||||
goto done;
|
||||
retval = 0;
|
||||
done:
|
||||
|
|
@ -680,7 +680,7 @@ cli_validate(clicon_handle h,
|
|||
{
|
||||
int retval = -1;
|
||||
|
||||
if ((retval = clicon_rpc_validate(h, "candidate")) < 0)
|
||||
if (clicon_rpc_validate(h, "candidate") < 1)
|
||||
goto done;
|
||||
retval = 0;
|
||||
done:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue