Skip to content

Commit

Permalink
Crash seen with startup mode as running with the XML_DB format being …
Browse files Browse the repository at this point in the history
…set to JSON. [clixon : 4.7.0] #138
  • Loading branch information
olofhagsand committed Oct 17, 2020
1 parent 4d35ace commit 46bee9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Users may have to change how they access the system

### Corrected Bugs

* Fixed [Crash seen with startup mode as running with the XML_DB format being set to JSON. [clixon : 4.7.0] #138](https://github.com/clicon/clixon/issues/138)
* Fixed: Performance enhancement of unique list check (of duplicate keys)
* Fixed: Validate/commit error with false positive yang choice changes detected in validation found in ietf-ipfix-psamp.yang.
* Fixed: Accepted added subtrees containing lists with duplicate keys.
Expand Down
6 changes: 5 additions & 1 deletion lib/src/clixon_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,11 @@ _json_parse(char *str,
/* RFC 7951 Section 4: A namespace-qualified member name MUST be used for all
* members of a top-level JSON object
*/
if (yspec && xml_prefix(x) == NULL){
if (yspec && xml_prefix(x) == NULL
#ifdef XMLDB_CONFIG_HACK
&& strcmp(xml_name(x), "config") != 0
#endif
){
if ((cberr = cbuf_new()) == NULL){
clicon_err(OE_UNIX, errno, "cbuf_new");
goto done;
Expand Down

0 comments on commit 46bee9e

Please sign in to comment.