mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-10-18 17:10:02 +00:00
zebra: Check if ifp is not NULL in zebra_if_update_ctx()
Use the same logic as zebra_if_netconf_update_ctx(). Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
803375ac69
commit
f5fee8dd54
@ -1368,6 +1368,13 @@ static void zebra_if_update_ctx(struct zebra_dplane_ctx *ctx,
|
||||
bool pd_reason_val;
|
||||
bool down;
|
||||
|
||||
if (!ifp) {
|
||||
if (IS_ZEBRA_DEBUG_KERNEL)
|
||||
zlog_debug("%s: Can't find ifp", __func__);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
dp_res = dplane_ctx_get_status(ctx);
|
||||
pd_reason_val = dplane_ctx_get_intf_pd_reason_val(ctx);
|
||||
down = dplane_ctx_intf_is_protodown(ctx);
|
||||
|
Loading…
Reference in New Issue
Block a user