From 5cb41c8d8adb6e37868728d6bcbf6a7a843c6857 Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Thu, 20 Apr 2023 21:47:33 +0200 Subject: [PATCH] Fixed: unified netconf input: wrong yang-bind --- apps/netconf/netconf_main.c | 2 +- lib/src/clixon_netconf_input.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/netconf/netconf_main.c b/apps/netconf/netconf_main.c index 894c6dc8..18ff90ea 100644 --- a/apps/netconf/netconf_main.c +++ b/apps/netconf/netconf_main.c @@ -603,7 +603,7 @@ netconf_input_cb(int s, break; } clicon_debug(CLIXON_DBG_MSG, "Recv ext: %s", cbuf_get(cbmsg)); - if ((ret = netconf_input_frame2(cbmsg, Y_RPC, yspec, &xtop, &xerr)) < 0) + if ((ret = netconf_input_frame2(cbmsg, YB_RPC, yspec, &xtop, &xerr)) < 0) goto done; cbuf_reset(cbmsg); if (ret == 0){ /* Invalid frame, parse error, etc */ diff --git a/lib/src/clixon_netconf_input.c b/lib/src/clixon_netconf_input.c index b7fa233e..9a3fa89f 100644 --- a/lib/src/clixon_netconf_input.c +++ b/lib/src/clixon_netconf_input.c @@ -31,7 +31,7 @@ goto done; if (!eom) break; - if ((ret = netconf_input_frame2(cbmsg, Y_RPC, yspec, &cbret, &xtop)) < 0) + if ((ret = netconf_input_frame2(cbmsg, YB_RPC, yspec, &cbret, &xtop)) < 0) goto done; // process incoming packet xtop }