summaryrefslogtreecommitdiffstats
path: root/lib/northbound.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-05-19 14:53:16 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2021-05-19 15:22:24 +0200
commitf96c2b6dc2323835f88cd3a81500a68adc5619ee (patch)
tree763a3fb5735df2a8d2dc3995ceaa05ca7fc31306 /lib/northbound.c
parentMerge pull request #8688 from idryzhov/bgp-vrf-bind-priv (diff)
downloadfrr-f96c2b6dc2323835f88cd3a81500a68adc5619ee.tar.xz
frr-f96c2b6dc2323835f88cd3a81500a68adc5619ee.zip
lib: fix coverity warnings
CID 1504894 Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/northbound.c')
-rw-r--r--lib/northbound.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/northbound.c b/lib/northbound.c
index 3634fed04..6988fd9a9 100644
--- a/lib/northbound.c
+++ b/lib/northbound.c
@@ -599,6 +599,7 @@ static void nb_config_diff(const struct nb_config *config1,
* the diff tree.
*/
target = yang_dnode_get(config2->dnode, path);
+ assert(target);
nb_config_diff_created(target, &seq, changes);
/* Skip rest of sub-tree, move to next sibling
@@ -607,6 +608,7 @@ static void nb_config_diff(const struct nb_config *config1,
break;
case 'd': /* delete */
target = yang_dnode_get(config1->dnode, path);
+ assert(target);
nb_config_diff_deleted(target, &seq, changes);
/* Skip rest of sub-tree, move to next sibling