From 7b9edd7112e9f2353870dd1935ccb5cde755ea36 Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Mon, 25 Mar 2019 14:31:21 +0100 Subject: [PATCH] ret error --- apps/backend/backend_commit.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/backend/backend_commit.c b/apps/backend/backend_commit.c index 24c800797..b968a8b0f 100644 --- a/apps/backend/backend_commit.c +++ b/apps/backend/backend_commit.c @@ -375,10 +375,12 @@ startup_commit(clicon_handle h, goto done; if (xmldb_get(h, db, "/", 1, &xt, msd) < 0) goto done; - if (msd && (ret = clixon_module_upgrade(h, xt, msd, cbret)) < 0) - goto done; - if (ret == 0) - goto fail; + if (msd){ + if((ret = clixon_module_upgrade(h, xt, msd, cbret)) < 0) + goto done; + if (ret == 0) + goto fail; + } if ((yspec = clicon_dbspec_yang(h)) == NULL){ clicon_err(OE_YANG, 0, "Yang spec not set"); goto done;