summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/rt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c
index a65fe64..6602124 100644
--- a/proto/ospf/rt.c
+++ b/proto/ospf/rt.c
@@ -933,7 +933,7 @@ again1:
a0.aflags = 0;
a0.iface = nf->n.ifa;
a0.gw = nf->n.nh;
- if(!neigh_find(p, &nf->n.nh, 0))
+ if ((!ipa_equal(nf->n.nh, IPA_NONE)) && (!neigh_find(p, &nf->n.nh, 0)))
{
int found = 0;
struct ospf_iface *ifa;