diff --git a/apps/restconf/restconf_methods.c b/apps/restconf/restconf_methods.c index 4fd549dc..f24cce22 100644 --- a/apps/restconf/restconf_methods.c +++ b/apps/restconf/restconf_methods.c @@ -336,7 +336,6 @@ api_data_post(clicon_handle h, if (xml_addsub(xbot, x) < 0) goto done; } - xdata = NULL; if ((cbx = cbuf_new()) == NULL) goto done; if (clicon_xml2cbuf(cbx, xtop, 0, 0) < 0) diff --git a/test/test3.sh b/test/test3.sh index 05b1a979..cd4df191 100755 --- a/test/test3.sh +++ b/test/test3.sh @@ -49,8 +49,6 @@ expectfn 'curl -sS -X DELETE http://localhost/restconf/data/interfaces' "" new "Check empty config" expectfn "curl -sSG http://localhost/restconf/data" "^null $" - - new "Add interfaces subtree eth/0/0 using POST" expectfn 'curl -sS -X POST -d {"interface":{"name":"eth/0/0","type":"eth","enabled":"true"}} http://localhost/restconf/data/interfaces' "" @@ -85,7 +83,7 @@ expectfn "curl -sS -G http://localhost/restconf/data" '{"interfaces": {"interfac $' new "Kill restconf daemon" -#sudo pkill -u www-data clixon_restconf +sudo pkill -u www-data clixon_restconf new "Kill backend" # Check if still alive