diff options
author | hasso <hasso> | 2004-02-11 21:52:13 +0000 |
---|---|---|
committer | hasso <hasso> | 2004-02-11 21:52:13 +0000 |
commit | 2db3d05da3ac6b1ff9452a5f291bfc39a719d1c6 (patch) | |
tree | 41cceb234a9b0cfb6410574689cd800671456b55 /ospfd/ospf_zebra.c | |
parent | cb05eb285f28524ada2df62c5522dcf47acb841b (diff) |
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 ea90c845..06916aee 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; |