add missing inpcb lock before call to tcp_twclose (which reclaims the inpcb)
Supported by: FreeBSD Foundation
This commit is contained in:
parent
135a94b34b
commit
64b81ef0ad
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user