From 2141b4972acc6b128f4cf76f0d670272df54e5e2 Mon Sep 17 00:00:00 2001 From: Olof Hagsand Date: Sun, 23 Jul 2017 14:25:40 +0200 Subject: [PATCH] handled netconf plugin --- apps/netconf/netconf_plugin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/netconf/netconf_plugin.c b/apps/netconf/netconf_plugin.c index a07606eb..cd2f9bc7 100644 --- a/apps/netconf/netconf_plugin.c +++ b/apps/netconf/netconf_plugin.c @@ -247,7 +247,9 @@ netconf_plugin_callbacks(clicon_handle h, nreg = deps; do { if (strcmp(nreg->nr_tag, xml_name(xn)) == 0){ - retval = nreg->nr_callback(h, xn, xret, nreg->nr_arg); + if ((retval = nreg->nr_callback(h, xn, xret, nreg->nr_arg)) < 0) + goto done; + retval = 1; /* handled */ goto done; } nreg = NEXTQ(netconf_reg_t *, nreg);