diff options
author | Paul Jakma <paul@quagga.net> | 2011-04-04 10:39:15 +0100 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2011-04-04 10:39:15 +0100 |
commit | 597de5a01a59759db05e00b0a1d4e0b158cf2c9e (patch) | |
tree | cbf84ef77631ac75e4f34d9b037663ced9ba5ef6 /ospf6d | |
parent | 604a9b43dd68a087ca5a4ac2cae19eb17591ba5f (diff) |
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.
Diffstat (limited to 'ospf6d')
-rw-r--r-- | ospf6d/ospf6_zebra.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ospf6d/ospf6_zebra.c b/ospf6d/ospf6_zebra.c index 0a8ac3e4..881771a7 100644 --- a/ospf6d/ospf6_zebra.c +++ b/ospf6d/ospf6_zebra.c @@ -132,6 +132,9 @@ ospf6_zebra_if_state_update (int command, struct zclient *zclient, struct interface *ifp; ifp = zebra_interface_state_read (zclient->ibuf); + if (ifp == NULL) + return 0; + if (IS_OSPF6_DEBUG_ZEBRA (RECV)) zlog_debug ("Zebra Interface state change: " "%s index %d flags %llx metric %d mtu %d", |