summaryrefslogtreecommitdiff
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2011-04-03 16:09:10 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2011-04-03 16:09:10 +0000
commit98c89a5a903623639906d73ae1bef4ffada7791a (patch)
treedd780ff2abe3aec9d10f6c33e6e464147086317f /sys/netinet/udp_usrreq.c
parent55d0786714b356261f264952a8ea994ba5b1bffe (diff)
Don't attempt to enqueue mbufs on sockets marked as SS_CANTRCVMORE, as
was done earlier for routing sockets. ok claudio@
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 1fa7d064d26..6db0e712d09 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp_usrreq.c,v 1.138 2010/09/24 14:50:30 hsuenaga Exp $ */
+/* $OpenBSD: udp_usrreq.c,v 1.139 2011/04/03 16:09:09 blambert Exp $ */
/* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */
/*
@@ -442,6 +442,8 @@ udp_input(struct mbuf *m, ...)
*/
last = NULL;
CIRCLEQ_FOREACH(inp, &udbtable.inpt_queue, inp_queue) {
+ if (inp->inp_socket->so_state & SS_CANTRCVMORE)
+ continue;
#ifdef INET6
/* don't accept it if AF does not match */
if (ip6 && !(inp->inp_flags & INP_IPV6))