* Added support for the following XPATH functions:

* `false`, `true`
* Fixed: [Negation operator in 'must' statement makes backend segmentation fault](https://github.com/clicon/clixon/issues/179)
This commit is contained in:
Olof hagsand 2021-02-23 15:24:39 +01:00
parent ab18946880
commit 2a4de52e56
5 changed files with 88 additions and 19 deletions

View file

@ -1040,6 +1040,16 @@ xp_eval(xp_ctx *xc,
goto done;
goto ok;
break;
case XPATHFN_TRUE:
if (xp_function_true(xc, xs->xs_c0, nsc, localonly, xrp) < 0)
goto done;
goto ok;
break;
case XPATHFN_FALSE:
if (xp_function_false(xc, xs->xs_c0, nsc, localonly, xrp) < 0)
goto done;
goto ok;
break;
default:
clicon_err(OE_XML, EFAULT, "XPATH function not implemented: %s", xs->xs_s0);
goto done;