summaryrefslogtreecommitdiff
path: root/ospfd/ospf_route.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_route.c')
-rw-r--r--ospfd/ospf_route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_route.c b/ospfd/ospf_route.c
index bcf563a5ba..590122e223 100644
--- a/ospfd/ospf_route.c
+++ b/ospfd/ospf_route.c
@@ -681,7 +681,7 @@ void ospf_route_table_print(struct vty *vty, struct route_table *rt)
or->cost);
for (ALL_LIST_ELEMENTS_RO(or->paths, pnode,
path))
- if (path->nexthop.s_addr != 0)
+ if (path->nexthop.s_addr != INADDR_ANY)
vty_out(vty, " -> %pI4\n",
&path->nexthop);
else