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;