summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_syncache.c
diff options
context:
space:
mode:
authorkaiw <kaiw@FreeBSD.org>2014-01-28 21:30:05 +0000
committerkaiw <kaiw@FreeBSD.org>2014-01-28 21:30:05 +0000
commit5586616ed8dcade1b1472715fe697a543075b152 (patch)
tree9e4450607208d9ed78f150d3c094de96dbdc18f2 /sys/netinet/tcp_syncache.c
parent9c3c6fdae0b43f1bbd5486754c20e403fc83c3b6 (diff)
downloadFreeBSD-src-5586616ed8dcade1b1472715fe697a543075b152.zip
FreeBSD-src-5586616ed8dcade1b1472715fe697a543075b152.tar.gz
MFH@261244.
Diffstat (limited to 'sys/netinet/tcp_syncache.c')
-rw-r--r--sys/netinet/tcp_syncache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c
index af30ad1..e060beb 100644
--- a/sys/netinet/tcp_syncache.c
+++ b/sys/netinet/tcp_syncache.c
@@ -682,7 +682,7 @@ syncache_socket(struct syncache *sc, struct socket *lso, struct mbuf *m)
* connection when the SYN arrived. If we can't create
* the connection, abort it.
*/
- so = sonewconn(lso, SS_ISCONNECTED);
+ so = sonewconn(lso, 0);
if (so == NULL) {
/*
* Drop the connection; we will either send a RST or
@@ -922,6 +922,8 @@ syncache_socket(struct syncache *sc, struct socket *lso, struct mbuf *m)
INP_WUNLOCK(inp);
+ soisconnected(so);
+
TCPSTAT_INC(tcps_accepts);
return (so);
OpenPOWER on IntegriCloud