From 0da7701aa2da8ff638f4271b982432411fbd9392 Mon Sep 17 00:00:00 2001 From: Reuben Dowle Date: Wed, 17 Feb 2021 13:49:06 +1300 Subject: [PATCH] nhrpd: Fix multicast crash due to dangling references to nhrp peers Signed-off-by: Reuben Dowle --- nhrpd/nhrp_multicast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nhrpd/nhrp_multicast.c b/nhrpd/nhrp_multicast.c index 0c5de838ad..6feab210c9 100755 --- a/nhrpd/nhrp_multicast.c +++ b/nhrpd/nhrp_multicast.c @@ -62,8 +62,8 @@ static void nhrp_multicast_forward_nbma(union sockunion *nbma_addr, struct inter if(p && p->online) { /* Send packet */ nhrp_multicast_send(p, pkt); - nhrp_peer_unref(p); } + nhrp_peer_unref(p); } static void nhrp_multicast_forward_cache(struct nhrp_cache *c, void *pctx) -- 2.39.5