Skip to content

Commit

Permalink
Fixed: [xmldb_get0 returns invalid candidate on startup transaction c…
Browse files Browse the repository at this point in the history
…allbacks #126](#126). Always clear candidate-db before db initialization.
  • Loading branch information
olofhagsand committed Sep 7, 2020
1 parent 658fffb commit 5ee6283
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Developers may need to change their code

### Corrected Bugs

* Fixed: [xmldb_get0 returns invalid candidate on startup transaction callbacks #126](https://github.com/clicon/clixon/issues/126). Always clear candidate-db before db initialization.
* Fixed: YANG `uses` statements in sub-modules did not search for `grouping` statements in other submodules of the module it belongs to.
* Fixed: [CLI crash if error-info is empty #134](https://github.com/clicon/clixon/issues/134)
* Fixed: [copy-config's RPC cxobj parameter does not contain namespace #131](https://github.com/clicon/clixon/issues/131)
Expand Down
1 change: 1 addition & 0 deletions apps/backend/backend_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,7 @@ main(int argc,
if (xmldb_exists(h, "running") != 1)
if (xmldb_create(h, "running") < 0)
return -1;
xmldb_delete(h, "candidate");
/* If startup fails, lib functions report invalidation info in a cbuf */
if ((cbret = cbuf_new()) == NULL){
clicon_err(OE_XML, errno, "cbuf_new");
Expand Down

0 comments on commit 5ee6283

Please sign in to comment.