diff options
author | hasso <hasso> | 2004-02-11 22:52:13 +0100 |
---|---|---|
committer | hasso <hasso> | 2004-02-11 22:52:13 +0100 |
commit | 2db3d05da3ac6b1ff9452a5f291bfc39a719d1c6 (patch) | |
tree | 41cceb234a9b0cfb6410574689cd800671456b55 /ospfd/ospf_zebra.c | |
parent | Fix by Vadim Suraev - [zebra 14710] #6. (diff) | |
download | frr-2db3d05da3ac6b1ff9452a5f291bfc39a719d1c6.tar.xz frr-2db3d05da3ac6b1ff9452a5f291bfc39a719d1c6.zip |
Don't crash when attempting to read path->oi->ifp if oi doesn't exist any
more. I'm not sure if this read should be attempted at all, but I'm trying
to keep code safe AND stable.
Diffstat (limited to 'ospfd/ospf_zebra.c')
-rw-r--r-- | ospfd/ospf_zebra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c index ea90c845f..06916aee8 100644 --- a/ospfd/ospf_zebra.c +++ b/ospfd/ospf_zebra.c @@ -429,7 +429,7 @@ ospf_zebra_delete (struct prefix_ipv4 *p, struct ospf_route *or) nexthop = &path->nexthop; api.nexthop = &nexthop; } - else if (path->oi->ifp) + else if (ospf_if_exists(path->oi) && (path->oi->ifp)) { SET_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP); api.ifindex_num = 1; |