summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2010-09-02 09:38:06 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2010-09-02 09:38:06 +0000
commit3f6565d47e14274b3609bf60d2aa3d644861b1df (patch)
treeeea00add56e439f22ae897662cd8fe8e4bf3a8b9 /sys/net
parent85af94bc937c1410dfdcda4d6f12160cc6f78646 (diff)
don't attempt to enqueue routing messages on sockets marked SS_CANTRCVMORE
ok claudio@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/rtsock.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c
index 66ae5a7d0d6..a0937703e44 100644
--- a/sys/net/rtsock.c
+++ b/sys/net/rtsock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtsock.c,v 1.107 2010/08/25 14:07:24 claudio Exp $ */
+/* $OpenBSD: rtsock.c,v 1.108 2010/09/02 09:38:05 blambert Exp $ */
/* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */
/*
@@ -320,6 +320,8 @@ route_input(struct mbuf *m0, ...)
}
LIST_FOREACH(rp, &rawcb, rcb_list) {
+ if (rp->rcb_socket->so_state & SS_CANTRCVMORE)
+ continue;
if (rp->rcb_proto.sp_family != proto->sp_family)
continue;
if (rp->rcb_proto.sp_protocol &&