Fixed: Segv in canonical xpath transform
This commit is contained in:
parent
b7b1bf7aa4
commit
199a3fd88e
2 changed files with 2 additions and 1 deletions
|
|
@ -37,6 +37,7 @@ Developers may need to change their code
|
||||||
|
|
||||||
### Corrected Bugs
|
### Corrected Bugs
|
||||||
|
|
||||||
|
* Fixed: Segv in canonical xpath transform
|
||||||
* Fixed: [Error with submodules and feature Interaction](https://github.com/clicon/clixon-controller/issues/158)
|
* Fixed: [Error with submodules and feature Interaction](https://github.com/clicon/clixon-controller/issues/158)
|
||||||
* Fixed: [Expansion removes the double quote](https://github.com/clicon/clixon/issues/524)
|
* Fixed: [Expansion removes the double quote](https://github.com/clicon/clixon/issues/524)
|
||||||
* Add escaping in expand_dbvar instead of automatic in cligen expand
|
* Add escaping in expand_dbvar instead of automatic in cligen expand
|
||||||
|
|
|
||||||
|
|
@ -1112,7 +1112,7 @@ xpath_traverse_canonical(xpath_tree *xs,
|
||||||
free(xs->xs_s0);
|
free(xs->xs_s0);
|
||||||
xs->xs_s0 = NULL;
|
xs->xs_s0 = NULL;
|
||||||
}
|
}
|
||||||
if ((xs->xs_s0 = strdup(prefix1)) == NULL){
|
if (prefix1 && (xs->xs_s0 = strdup(prefix1)) == NULL){
|
||||||
clixon_err(OE_UNIX, errno, "strdup");
|
clixon_err(OE_UNIX, errno, "strdup");
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue