diff options
author | pjd <pjd@FreeBSD.org> | 2004-02-19 14:13:21 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-02-19 14:13:21 +0000 |
commit | 806650a364da6d56822814b83ebe8fb214bb1775 (patch) | |
tree | acfad4592db822c59e9c1e6b390d629a38de9032 /sys/netinet/tcp_timewait.c | |
parent | 92fa0888006446f19ecb94917fc328f73a181ca5 (diff) | |
download | FreeBSD-src-806650a364da6d56822814b83ebe8fb214bb1775.zip FreeBSD-src-806650a364da6d56822814b83ebe8fb214bb1775.tar.gz |
Fixed ucred structure leak.
Approved by: scottl (mentor)
PR: 54163
MFC after: 3 days
Diffstat (limited to 'sys/netinet/tcp_timewait.c')
-rw-r--r-- | sys/netinet/tcp_timewait.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index faaf00a..0878744 100644 --- a/sys/netinet/tcp_timewait.c +++ b/sys/netinet/tcp_timewait.c @@ -1656,6 +1656,8 @@ tcp_twclose(struct tcptw *tw, int reuse) #endif in_pcbdetach(inp); tcpstat.tcps_closed++; + crfree(tw->tw_cred); + tw->tw_cred = NULL; if (reuse) return (tw); uma_zfree(tcptw_zone, tw); |