diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-12-28 20:08:16 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-12-28 20:08:16 +0000 |
commit | 0401eb19471b3c8aace2dc77de70d9e55be8231d (patch) | |
tree | aba5714f78a191d6bfa8346327049e2f3bf37d8b /sys | |
parent | 2480e42d2fb95b4fc6ba433cb0b95f6815b55cd7 (diff) |
check if ifqueue has anything queued before doing the dance of
splnet/IF_DEQUEUE/splx; ok various people
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet6/ip6_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index e1c4d14e813..71b6c4f43b3 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_input.c,v 1.73 2006/12/19 06:33:49 itojun Exp $ */ +/* $OpenBSD: ip6_input.c,v 1.74 2006/12/28 20:08:15 deraadt Exp $ */ /* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */ /* @@ -174,7 +174,7 @@ ip6intr() int s; struct mbuf *m; - for (;;) { + while (ip6intrq.ifq_head) { s = splnet(); IF_DEQUEUE(&ip6intrq, m); splx(s); |