diff options
| -rw-r--r-- | bgpd/bgp_zebra.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index 720972e3ac..0e83152397 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -316,6 +316,9 @@ bgp_interface_delete (int command, struct zclient *zclient, s = zclient->ibuf; ifp = zebra_interface_state_read (s, vrf_id); + if (! ifp) /* This may happen if we've just unregistered for a VRF. */ + return 0; + ifp->ifindex = IFINDEX_INTERNAL; if (BGP_DEBUG (zebra, ZEBRA)) |
