diff options
author | 2007-10-30 09:04:47 +0000 | |
---|---|---|
committer | 2007-10-30 09:04:47 +0000 | |
commit | e2ba265432dc5238ab17a6021ccdc8f6a113329e (patch) | |
tree | bb6bf2438182bf95281d9e1bb903faa3f9111a1d | |
parent | print some word reads as well in the verbose output (diff) | |
download | wireguard-openbsd-e2ba265432dc5238ab17a6021ccdc8f6a113329e.tar.xz wireguard-openbsd-e2ba265432dc5238ab17a6021ccdc8f6a113329e.zip |
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.c | 6 |
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; } |