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
This commit is contained in:
Andrew Thompson 2007-06-22 23:28:33 +00:00
parent a964e8de4c
commit e67b204a4a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170995

View File

@ -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;
}