summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_zebra.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospf6d/ospf6_zebra.c')
-rw-r--r--ospf6d/ospf6_zebra.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ospf6d/ospf6_zebra.c b/ospf6d/ospf6_zebra.c
index bdd3babc..bc15dff6 100644
--- a/ospf6d/ospf6_zebra.c
+++ b/ospf6d/ospf6_zebra.c
@@ -57,6 +57,9 @@ ospf6_router_id_update_zebra (int command, struct zclient *zclient,
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;