replace obsolete cvec_find_var with cvec_find

This commit is contained in:
Olof hagsand 2018-06-08 15:54:43 +02:00
parent ff5f93ac1e
commit dacd2fe3a0
4 changed files with 17 additions and 17 deletions

View file

@ -104,7 +104,7 @@ fib_route_rpc(clicon_handle h,
/* Send to backend */
if (clicon_rpc_netconf_xml(h, xrpc, &xret, NULL) < 0)
goto done;
if ((xerr = xpath_first(xret, "/rpc-error")) != NULL){
if ((xerr = xpath_first(xret, "//rpc-error")) != NULL){
clicon_rpc_generate_error("Get configuration", xerr);
goto done;
}