diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-12-28 20:06:12 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-12-28 20:06:12 +0000 |
commit | 2480e42d2fb95b4fc6ba433cb0b95f6815b55cd7 (patch) | |
tree | 82f907226af844e317f31457dba136b7b5e3744c /sys/netinet | |
parent | bd4d905356c01182d54e264499fa8d97372906f3 (diff) |
check if ifqueue has anything queued before doing the dance of
splnet/IF_DEQUEUE/splx; ok various people
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index d49d43e8687..deca652ad8a 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_input.c,v 1.145 2006/11/27 12:27:45 henning Exp $ */ +/* $OpenBSD: ip_input.c,v 1.146 2006/12/28 20:06:10 deraadt Exp $ */ /* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */ /* @@ -247,7 +247,7 @@ ipintr() struct mbuf *m; int s; - while (1) { + while (ipintrq.ifq_head) { /* * Get next datagram off input queue and get IP header * in first mbuf. |