mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-03 05:45:08 +00:00
pimd: pim_upstream_add up must exist
When calling pim_upstream_add, the lookup for upstream or the creation of the upstream cannot fail. As such up is never NULL. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
29b458ef1f
commit
e89de02895
@ -1061,15 +1061,13 @@ struct pim_upstream *pim_upstream_add(struct pim_instance *pim, pim_sgaddr *sg,
|
||||
}
|
||||
|
||||
if (PIM_DEBUG_PIM_TRACE) {
|
||||
if (up)
|
||||
zlog_debug("%s(%s): %s, iif %pPA (%s) found: %d: ref_count: %d",
|
||||
__func__, name,
|
||||
up->sg_str, &up->rpf.rpf_addr, up->rpf.source_nexthop.interface ?
|
||||
up->rpf.source_nexthop.interface->name : "Unknown" ,
|
||||
found, up->ref_count);
|
||||
else
|
||||
zlog_debug("%s(%s): (%pSG) failure to create", __func__,
|
||||
name, sg);
|
||||
zlog_debug(
|
||||
"%s(%s): %s, iif %pPA (%s) found: %d: ref_count: %d",
|
||||
__func__, name, up->sg_str, &up->rpf.rpf_addr,
|
||||
up->rpf.source_nexthop.interface ? up->rpf.source_nexthop
|
||||
.interface->name
|
||||
: "Unknown",
|
||||
found, up->ref_count);
|
||||
}
|
||||
|
||||
return up;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user