local restconf rpc callback sent error and then main restconf handler sent ok. Callback should just return xml buffer, not do actual restconf callback
This commit is contained in:
parent
24de61f14a
commit
b2abab71f0
3 changed files with 18 additions and 5 deletions
|
|
@ -465,8 +465,8 @@ rpc_callback_call(clicon_handle h,
|
|||
cbuf *cbret,
|
||||
void *arg)
|
||||
{
|
||||
rpc_callback_t *rc;
|
||||
int retval = -1;
|
||||
rpc_callback_t *rc;
|
||||
|
||||
if (rpc_cb_list == NULL)
|
||||
return 0;
|
||||
|
|
@ -486,5 +486,6 @@ rpc_callback_call(clicon_handle h,
|
|||
} while (rc != rpc_cb_list);
|
||||
retval = 0;
|
||||
done:
|
||||
clicon_debug(1, "%s retval:%d", __FUNCTION__, retval);
|
||||
return retval;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue