summaryrefslogtreecommitdiffstats
path: root/sys/net/bridgestp.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2007-06-22 23:28:33 +0000
committerthompsa <thompsa@FreeBSD.org>2007-06-22 23:28:33 +0000
commit4775f3106a3a06f54abfe49e31a05c2a78639c68 (patch)
tree9f1cf1e98ee23f09e8c5ccc272ccc1a6c725838f /sys/net/bridgestp.c
parentaaa3e960bf1d377a59c812b0fe62a7f8ee229227 (diff)
downloadFreeBSD-src-4775f3106a3a06f54abfe49e31a05c2a78639c68.zip
FreeBSD-src-4775f3106a3a06f54abfe49e31a05c2a78639c68.tar.gz
Check the correct port to see if synced is true.
PR: misc/113958 Submitted by: Aaron Needles Approved by: re (bmah) MFC after: 1 week
Diffstat (limited to 'sys/net/bridgestp.c')
-rw-r--r--sys/net/bridgestp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c
index 9472149..7d3d3c7 100644
--- a/sys/net/bridgestp.c
+++ b/sys/net/bridgestp.c
@@ -916,8 +916,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;
}
OpenPOWER on IntegriCloud