diff options
author | Paul Jakma <paul.jakma@sun.com> | 2006-05-13 00:50:40 +0200 |
---|---|---|
committer | Paul Jakma <paul.jakma@sun.com> | 2006-05-13 00:50:40 +0200 |
commit | 894f8b6602f786db42da58c48b1338df5fa98732 (patch) | |
tree | 27d1cdb69d21e33a641c108a0ce39fd480e748f7 /ospfd/ospf_route.c | |
parent | [ospfd] Check NULL result from ospf_area_lookup_by_area_id, CID #69 (diff) | |
download | frr-894f8b6602f786db42da58c48b1338df5fa98732.tar.xz frr-894f8b6602f786db42da58c48b1338df5fa98732.zip |
[ospfd] CID #49, fix dereference before NULL check
2006-05-11 Paul Jakma <paul.jakma@sun.com>
* ospf_route.c: (ospf_route_delete_same_ext) Fix deref before
NULL check by moving into check-protected block, fix CID #49.
Diffstat (limited to 'ospfd/ospf_route.c')
-rw-r--r-- | ospfd/ospf_route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_route.c b/ospfd/ospf_route.c index 646b625fc..e0f2565f9 100644 --- a/ospfd/ospf_route.c +++ b/ospfd/ospf_route.c @@ -195,9 +195,9 @@ ospf_route_delete_same_ext(struct route_table *external_routes, struct prefix_ipv4 *p = (struct prefix_ipv4 *)(&rn->p); if ( (ext_rn = route_node_lookup (external_routes, (struct prefix *)p)) ) { - ospf_zebra_delete (p, ext_rn->info); if (ext_rn->info) { + ospf_zebra_delete (p, ext_rn->info); ospf_route_free( ext_rn->info); ext_rn->info = NULL; } |