add missing inpcb lock before call to tcp_twclose (which reclaims the inpcb)

Supported by:	FreeBSD Foundation
This commit is contained in:
sam 2003-11-13 05:18:23 +00:00
parent 135a94b34b
commit 64b81ef0ad

View File

@ -1000,6 +1000,7 @@ in_pcblookup_local(pcbinfo, laddr, lport_arg, wild_okay)
*/
if ((inp->inp_vflag & INP_TIMEWAIT) != 0) {
if (tcp_twrecycleable((struct tcptw *)inp->inp_ppcb)) {
INP_LOCK(inp);
tcp_twclose((struct tcptw *)inp->inp_ppcb, 0);
match = NULL;
goto retrylookup;