summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2007-10-30 09:04:48 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2007-10-30 09:04:48 +0000
commit8697ca299e178a1542fb2567e8d6ff603a5e5833 (patch)
treea1de51b57cf8e4af86c62d7ed72d8131b176d7af
parent8c44a592d3e36f33cecad9c3586427ba7ab22fbb (diff)
fix a typo, LIST_FOREACH(bp2, ... and then using bp instead of bp2
inside that loop doesn't yield the expected results. from freebsd r1.37 Andrew Thompson <thompsa@freebsd.org>
-rw-r--r--sys/net/bridgestp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c
index 26aa614654e..0e0401dc253 100644
--- a/sys/net/bridgestp.c
+++ b/sys/net/bridgestp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bridgestp.c,v 1.28 2007/10/14 12:27:35 krw Exp $ */
+/* $OpenBSD: bridgestp.c,v 1.29 2007/10/30 09:04:47 henning Exp $ */
/*
* Copyright (c) 2000 Jason L. Wright (jason@thought.net)
@@ -1033,8 +1033,8 @@ bstp_update_state(struct bstp_state *bs, struct bstp_port *bp)
if (!bs->bs_allsynced) {
synced = 1;
LIST_FOREACH(bp2, &bs->bs_bplist, bp_next) {
- if (!(bp->bp_synced ||
- bp->bp_role == BSTP_ROLE_ROOT)) {
+ if (!(bp2->bp_synced ||
+ bp2->bp_role == BSTP_ROLE_ROOT)) {
synced = 0;
break;
}