summaryrefslogtreecommitdiff
path: root/ospfd
diff options
context:
space:
mode:
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>2009-08-22 14:57:54 +0200
committerPaul Jakma <paul@quagga.net>2009-08-28 13:03:49 +0100
commit27f5dc8120e1c6902e29d86cf0d77b82cf3848c0 (patch)
treea9058ac54bf22840409d52aa761fa215cc7abb31 /ospfd
parent5d8de93a84b2afc4202d3284eb9e57672e2551b3 (diff)
ospfd: Make sure priority is respected.
* ospf_ism.c (ospf_dr_eligible_routers) should test for priority > 0 instead of != 0 as ospf_nbr_new () initially sets prio to -1
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_ism.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_ism.c b/ospfd/ospf_ism.c
index f215bfc2..18402836 100644
--- a/ospfd/ospf_ism.c
+++ b/ospfd/ospf_ism.c
@@ -173,7 +173,7 @@ ospf_dr_eligible_routers (struct route_table *nbrs, struct list *el_list)
/* Ignore 0.0.0.0 node*/
if (nbr->router_id.s_addr != 0)
/* Is neighbor eligible? */
- if (nbr->priority != 0)
+ if (nbr->priority > 0)
/* Is neighbor upper 2-Way? */
if (nbr->state >= NSM_TwoWay)
listnode_add (el_list, nbr);