diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-07-08 11:23:51 +0300 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-07-10 22:37:33 +0300 |
| commit | f5fee8dd54e7e17d759ebe608b81af01dbd476b2 (patch) | |
| tree | 7104f9276586dc8b1f72ae7ddde65219ce6f7591 /zebra/interface.c | |
| parent | 803375ac696dc82487c94587eedfa49fcc9cd5bb (diff) | |
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>
Diffstat (limited to 'zebra/interface.c')
| -rw-r--r-- | zebra/interface.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index 6be6f51598..cf36594b34 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -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); |
