Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175440708
D59325.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
658 B
Referenced Files
None
Subscribers
None
D59325.diff
View Options
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -2455,7 +2455,6 @@
STAILQ_FOREACH_FROM_SAFE(m, &tp->t_inqueue, m_stailqpkt, prev)
m_freem(m);
}
- TCPSTATES_DEC(tp->t_state);
if (tp->t_fb->tfb_tcp_fb_fini)
(*tp->t_fb->tfb_tcp_fb_fini)(tp, 1);
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -209,6 +209,7 @@
tp->t_state < TCPS_SYN_SENT,
("%s: inp %p not disconnected or embryonic", __func__, inp));
+ TCPSTATES_DEC(tp->t_state);
tcp_discardcb(tp);
in_pcbfree(inp);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 11, 9:30 PM (3 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40580293
Default Alt Text
D59325.diff (658 B)
Attached To
Mode
D59325: tcp: fix TCPS_CLOSED state underleak in syncache_socket()
Attached
Detach File
Event Timeline
Log In to Comment