Skip to content

Commit

Permalink
Merge pull request #16599 from anlancs/fix/pimd-limit-join
Browse files Browse the repository at this point in the history
pimd: fix missing checking the return value for igmp command
  • Loading branch information
donaldsharp authored Aug 18, 2024
2 parents fa50fde + cbe5098 commit 34e7dcd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pimd/pim_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,10 @@ ferr_r pim_if_gm_join_add(struct interface *ifp, pim_addr group_addr,
return ferr_ok();
}

(void)gm_join_new(ifp, group_addr, source_addr);
if (!gm_join_new(ifp, group_addr, source_addr)) {
return ferr_cfg_invalid("can't join (%pPA,%pPA) on interface %s",
&source_addr, &group_addr, ifp->name);
}

if (PIM_DEBUG_GM_EVENTS) {
zlog_debug(
Expand Down

0 comments on commit 34e7dcd

Please sign in to comment.