]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: fix coverity use after free issue: CID 1620101 17895/head
authorChristian Hopps <chopps@labn.net>
Mon, 20 Jan 2025 18:33:15 +0000 (18:33 +0000)
committerChristian Hopps <chopps@labn.net>
Tue, 21 Jan 2025 16:27:44 +0000 (16:27 +0000)
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>
lib/northbound_notif.c

index 10a81d05fb912f9f9efed816152de06078925b7d..9caca9f6d7050a4e0860a6df3040b3f8d07d7c83 100644 (file)
@@ -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;