commit | c1ba9e8a8ac0447e6f33d50b4b9e7a1e68307bf1 | [log] [tgz] |
---|---|---|
author | jardin <jardin> | Wed Mar 02 22:43:26 2005 +0000 |
committer | jardin <jardin> | Wed Mar 02 22:43:26 2005 +0000 |
tree | cff477f00b68f3fe7db18cfa384aac90825c96ab | |
parent | 719e97414a7ca1a4d49d72816b9e1bd2155d157d [diff] [blame] |
Fix segfault when ospf6_create() is not called yet. Thanks to Mohit Thakur.
diff --git a/ospf6d/ospf6_zebra.c b/ospf6d/ospf6_zebra.c index bdd3bab..bc15dff 100644 --- a/ospf6d/ospf6_zebra.c +++ b/ospf6d/ospf6_zebra.c
@@ -57,6 +57,9 @@ zebra_router_id_update_read(zclient->ibuf,&router_id); router_id_zebra = router_id.u.prefix4; + if (o == NULL) + return 0; + if (o->router_id == 0) o->router_id = (u_int32_t) router_id_zebra.s_addr;