svn commit: r274525 - projects/sendfile/sys/netinet
Gleb Smirnoff
glebius at FreeBSD.org
Fri Nov 14 19:21:20 UTC 2014
Author: glebius
Date: Fri Nov 14 19:21:19 2014
New Revision: 274525
URL: https://svnweb.freebsd.org/changeset/base/274525
Log:
Now that sbcut() avoid to free M_NOTREADY mbufs, in case of socket
going down we are responsible to free the mbufs.
Modified:
projects/sendfile/sys/netinet/tcp_usrreq.c
Modified: projects/sendfile/sys/netinet/tcp_usrreq.c
==============================================================================
--- projects/sendfile/sys/netinet/tcp_usrreq.c Fri Nov 14 19:08:19 2014 (r274524)
+++ projects/sendfile/sys/netinet/tcp_usrreq.c Fri Nov 14 19:21:19 2014 (r274525)
@@ -953,6 +953,8 @@ tcp_usr_ready(struct socket *so, struct
INP_WLOCK(inp);
if (inp->inp_flags & (INP_TIMEWAIT | INP_DROPPED)) {
INP_WUNLOCK(inp);
+ for (int i = 0; i < count; i++)
+ m = m_free(m);
return (ECONNRESET);
}
tp = intotcpcb(inp);
More information about the svn-src-projects
mailing list