`gm_join_new()` will return NULL in the case of running out of
socket/file resources. Just add the check for it.
Signed-off-by: anlan_cs <anlan_cs@tom.com>
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(