This commit is contained in:
Olof hagsand 2019-11-11 21:47:03 +01:00
parent 835f9030d2
commit 1defd2afc7
2 changed files with 1 additions and 5 deletions

View file

@ -8,13 +8,11 @@
* State callbacks provided by user are validated. If they are invalid an internal error is returned.
* Fixed multi-namespace for augmented state which was not covered in 4.2.0.
### API changes on existing features (you may need to change your code)
* The multi-namespace augment state may rearrange the XML namespace attributes.
* Main example yang changed to incorporate augmented state, new revision is 2019-11-15.
### Corrected Bugs
* Mandatory variables can no longer be deleted.
* [Add missing includes](https://github.com/clicon/clixon/pulls)

View file

@ -2243,12 +2243,10 @@ xml_default(cxobj *xt,
goto done;
}
else{ /* namespace does not exist in target, use source prefix */
char *prefix1 = NULL;
if ((prefix1 = strdup(yang_find_myprefix(y))) == NULL){
if ((prefix = yang_find_myprefix(y)) == NULL){
clicon_err(OE_UNIX, errno, "strdup");
goto done;
}
if (add_namespace(xc, xt, prefix1, namespace) < 0)
goto done;
}