From 6d23963d8b145f567c015ece2267c242af3b0566 Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Mon, 22 Mar 2021 12:20:52 +0100 Subject: [PATCH] Fixed: [clixon_restconf not properly configed and started by clixon_backend #193](clixon_restconf not properly configed and started by clixon_backend #193) --- CHANGELOG.md | 1 + apps/restconf/restconf_main_fcgi.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b613db1..1a083ae4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -70,6 +70,7 @@ Developers may need to change their code ### Corrected Bugs +* Fixed: [clixon_restconf not properly configed and started by clixon_backend #193](clixon_restconf not properly configed and started by clixon_backend #193) * Fixed: [backend start resconf failed due to path string truncated #192](https://github.com/clicon/clixon/issues/192) * Fixed: [state showing error in cli with CLICON_STREAM_DISCOVERY_RFC8040 #191](https://github.com/clicon/clixon/issues/191) * Fixed: [yang submodule show error in modules-state #190](yang submodule show error in modules-state #190) diff --git a/apps/restconf/restconf_main_fcgi.c b/apps/restconf/restconf_main_fcgi.c index 51b8f720..0c294d4d 100644 --- a/apps/restconf/restconf_main_fcgi.c +++ b/apps/restconf/restconf_main_fcgi.c @@ -468,7 +468,7 @@ main(int argc, } /* Extract restconf configuration */ if ((xrestconf2 = xpath_first(xconfig2, nsc, "restconf")) != NULL){ - if ((ret = restconf_config_init(h, xrestconf1)) < 0) + if ((ret = restconf_config_init(h, xrestconf2)) < 0) goto done; if (ret == 1) configure_done = 1;