summaryrefslogtreecommitdiffstats
path: root/nhrpd/nhrp_multicast.c
diff options
context:
space:
mode:
authorReuben Dowle <reuben.dowle@4rf.com>2021-02-17 01:49:06 +0100
committerReuben Dowle <reuben.dowle@4rf.com>2021-04-05 23:22:59 +0200
commit0da7701aa2da8ff638f4271b982432411fbd9392 (patch)
tree4554bcc0d02fadd63a73e1cd55b6e44a989919a8 /nhrpd/nhrp_multicast.c
parentnhrpd: Add support for forwarding multicast packets (diff)
downloadfrr-0da7701aa2da8ff638f4271b982432411fbd9392.tar.xz
frr-0da7701aa2da8ff638f4271b982432411fbd9392.zip
nhrpd: Fix multicast crash due to dangling references to nhrp peers
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
Diffstat (limited to 'nhrpd/nhrp_multicast.c')
-rwxr-xr-xnhrpd/nhrp_multicast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nhrpd/nhrp_multicast.c b/nhrpd/nhrp_multicast.c
index 0c5de838a..6feab210c 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)