summaryrefslogtreecommitdiff
path: root/ospfd/ospfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospfd.c')
-rw-r--r--ospfd/ospfd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c
index 6fe94f3a41..0adf8a7b41 100644
--- a/ospfd/ospfd.c
+++ b/ospfd/ospfd.c
@@ -115,9 +115,9 @@ void ospf_router_id_update(struct ospf *ospf)
disruptive.
3. Last choice: just go with whatever the zebra daemon recommends.
*/
- if (ospf->router_id_static.s_addr != 0)
+ if (ospf->router_id_static.s_addr != INADDR_ANY)
router_id = ospf->router_id_static;
- else if (ospf->router_id.s_addr != 0)
+ else if (ospf->router_id.s_addr != INADDR_ANY)
router_id = ospf->router_id;
else
router_id = ospf->router_id_zebra;