Fixed: backend exit when receiving invalid NETCONF get select XPath

Added XML encoding to XPaths in `select` attribute
This commit is contained in:
Olof hagsand 2024-05-15 13:44:12 +02:00
parent 989a7b38ee
commit 03a9c03b1c
11 changed files with 152 additions and 83 deletions

View file

@ -826,9 +826,9 @@ clixon_process_status(clixon_handle h,
* command) and therefore needs explicit encoding */
for (i=0; i<pe->pe_argc-1; i++){
if (i)
if (xml_chardata_cbuf_append(cbret, " ") < 0)
if (xml_chardata_cbuf_append(cbret, 0, " ") < 0)
goto done;
if (xml_chardata_cbuf_append(cbret, pe->pe_argv[i]) < 0)
if (xml_chardata_cbuf_append(cbret, 0, pe->pe_argv[i]) < 0)
goto done;
}
cprintf(cbret, "</command>");