summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_ism.c
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 14:03:49 +0200
commit27f5dc8120e1c6902e29d86cf0d77b82cf3848c0 (patch)
treea9058ac54bf22840409d52aa761fa215cc7abb31 /ospfd/ospf_ism.c
parentospfd: Tighten up the connected check for redistribution (diff)
downloadfrr-27f5dc8120e1c6902e29d86cf0d77b82cf3848c0.tar.xz
frr-27f5dc8120e1c6902e29d86cf0d77b82cf3848c0.zip
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/ospf_ism.c')
-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 f215bfc21..18402836c 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);