Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161547483
D39696.id120670.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
788 B
Referenced Files
None
Subscribers
None
D39696.id120670.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
@@ -2379,6 +2379,7 @@
{
struct inpcb *inp = tptoinpcb(tp);
struct socket *so = tptosocket(tp);
+ struct mbuf *m;
#ifdef INET6
bool isipv6 = (inp->inp_vflag & INP_IPV6) != 0;
#endif
@@ -2426,11 +2427,17 @@
#ifdef TCP_BLACKBOX
tcp_log_tcpcbfini(tp);
#endif
+ if ((m = STAILQ_FIRST(&tp->t_inqueue)) != NULL) {
+ struct mbuf *prev;
+
+ STAILQ_INIT(&tp->t_inqueue);
+ 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);
- MPASS(STAILQ_EMPTY(&tp->t_inqueue));
/*
* If we got enough samples through the srtt filter,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jul 5, 6:16 PM (6 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34719605
Default Alt Text
D39696.id120670.diff (788 B)
Attached To
Mode
D39696: tcp: purge the input queue from tcp_discardcb()
Attached
Detach File
Event Timeline
Log In to Comment