mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 12:52:49 +00:00
Merge pull request #17042 from donaldsharp/zebra_pw_crash
zebra: Fix crash in pw code
This commit is contained in:
commit
f9f11c675f
@ -205,8 +205,10 @@ void zebra_pw_handle_dplane_results(struct zebra_dplane_ctx *ctx)
|
|||||||
vrf = zebra_vrf_lookup_by_id(dplane_ctx_get_vrf(ctx));
|
vrf = zebra_vrf_lookup_by_id(dplane_ctx_get_vrf(ctx));
|
||||||
pw = zebra_pw_find(vrf, dplane_ctx_get_ifname(ctx));
|
pw = zebra_pw_find(vrf, dplane_ctx_get_ifname(ctx));
|
||||||
|
|
||||||
|
if (!pw)
|
||||||
|
return;
|
||||||
|
|
||||||
if (dplane_ctx_get_status(ctx) != ZEBRA_DPLANE_REQUEST_SUCCESS) {
|
if (dplane_ctx_get_status(ctx) != ZEBRA_DPLANE_REQUEST_SUCCESS) {
|
||||||
if (pw)
|
|
||||||
zebra_pw_install_failure(pw, dplane_ctx_get_pw_status(ctx));
|
zebra_pw_install_failure(pw, dplane_ctx_get_pw_status(ctx));
|
||||||
} else {
|
} else {
|
||||||
if (op == DPLANE_OP_PW_INSTALL && pw->status != PW_FORWARDING)
|
if (op == DPLANE_OP_PW_INSTALL && pw->status != PW_FORWARDING)
|
||||||
|
Loading…
Reference in New Issue
Block a user