summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2010-09-24 15:22:30 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2010-09-24 15:22:30 +0000
commit2c49511297025aca20600d5eb683e34b8c445076 (patch)
tree638c75f981fcd9fe9c297dc70c4f7e623c95a737
parentcc56ac2f68194368199fae9185c6c80275825d4a (diff)
avoid potential infinite loop
ok deraadt@
-rw-r--r--sys/net/if_bridge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index 4fbe0470dbe..ffbe4316646 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bridge.c,v 1.182 2010/07/09 16:58:06 reyk Exp $ */
+/* $OpenBSD: if_bridge.c,v 1.183 2010/09/24 15:22:29 blambert Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -1947,10 +1947,10 @@ bridge_rttrim(struct bridge_softc *sc)
LIST_REMOVE(n, brt_next);
sc->sc_brtcnt--;
free(n, M_DEVBUF);
- n = p;
if (sc->sc_brtcnt <= sc->sc_brtmax)
return;
}
+ n = p;
}
}
}