Fix for the previous netconf_err2cb commit
This commit is contained in:
parent
7713e79dc2
commit
2f81a086c8
1 changed files with 3 additions and 0 deletions
|
|
@ -1774,6 +1774,9 @@ netconf_err2cb(clicon_handle h,
|
||||||
cxobj *x;
|
cxobj *x;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
|
// XXX: some calls are <rpc-reply><rpc-error>, change calls instead
|
||||||
|
if (strcmp(xml_name(xerr), "rpc-error") != 0)
|
||||||
|
xerr = xml_child_i_type(xerr, 0, CX_ELMNT);
|
||||||
len = cbuf_len(cberr);
|
len = cbuf_len(cberr);
|
||||||
if (clixon_plugin_netconf_errmsg_all(h, xerr, cberr) < 0)
|
if (clixon_plugin_netconf_errmsg_all(h, xerr, cberr) < 0)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue