mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 03:47:47 +00:00
ospf6d: fix crash if zebra_interface_state_read can't find interface
* ospf6_zebra.c: (ospf6_zebra_if_state_update) zebra_interface_state_read may return NULL, if it can't find an interface, deal with it.
This commit is contained in:
parent
604a9b43dd
commit
597de5a01a
@ -132,6 +132,9 @@ ospf6_zebra_if_state_update (int command, struct zclient *zclient,
|
|||||||
struct interface *ifp;
|
struct interface *ifp;
|
||||||
|
|
||||||
ifp = zebra_interface_state_read (zclient->ibuf);
|
ifp = zebra_interface_state_read (zclient->ibuf);
|
||||||
|
if (ifp == NULL)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (IS_OSPF6_DEBUG_ZEBRA (RECV))
|
if (IS_OSPF6_DEBUG_ZEBRA (RECV))
|
||||||
zlog_debug ("Zebra Interface state change: "
|
zlog_debug ("Zebra Interface state change: "
|
||||||
"%s index %d flags %llx metric %d mtu %d",
|
"%s index %d flags %llx metric %d mtu %d",
|
||||||
|
Loading…
Reference in New Issue
Block a user