Skip to content

Commit

Permalink
nhrpd: Fix multicast crash due to dangling references to nhrp peers
Browse files Browse the repository at this point in the history
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
  • Loading branch information
reubendowle committed Apr 5, 2021
1 parent fa31fcf commit 0da7701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nhrpd/nhrp_multicast.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0da7701

Please sign in to comment.