summaryrefslogtreecommitdiffstats
path: root/lib/northbound_notif.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2025-01-20 19:33:15 +0100
committerChristian Hopps <chopps@labn.net>2025-01-21 17:27:44 +0100
commitfb5a71fa9516efef6c85330586307562a20b5f81 (patch)
tree9acb49408c471b0b2ba03fca47919b2974ebee0a /lib/northbound_notif.c
parentMerge pull request #17888 from krishna-samy/bgpd_mac_hash (diff)
downloadfrr-fb5a71fa9516efef6c85330586307562a20b5f81.tar.xz
frr-fb5a71fa9516efef6c85330586307562a20b5f81.zip
lib: fix coverity use after free issue: CID 1620101
The code doesn't push more than one group (currently) so wouldn't hit the bug yet, nice catch by coverity. Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/northbound_notif.c')
-rw-r--r--lib/northbound_notif.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/northbound_notif.c b/lib/northbound_notif.c
index 10a81d05f..9caca9f6d 100644
--- a/lib/northbound_notif.c
+++ b/lib/northbound_notif.c
@@ -600,6 +600,7 @@ static void timer_walk_continue(struct event *event)
timer_walk_done(args);
return;
}
+ group = args->group;
}
path = group->cur_change->path;