mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-27 03:11:52 +01:00
tcp_usr_rcvd: don't cast inp_ppcb to tcpcb before checking inp_flags
Fixes: f64dc2ab5b
This commit is contained in:
parent
03f9cc89e1
commit
37a7f55737
@ -934,12 +934,12 @@ tcp_usr_rcvd(struct socket *so, int flags)
|
||||
inp = sotoinpcb(so);
|
||||
KASSERT(inp != NULL, ("tcp_usr_rcvd: inp == NULL"));
|
||||
INP_WLOCK(inp);
|
||||
NET_EPOCH_ENTER(et);
|
||||
tp = intotcpcb(inp);
|
||||
if (inp->inp_flags & (INP_TIMEWAIT | INP_DROPPED)) {
|
||||
error = ECONNRESET;
|
||||
goto out;
|
||||
INP_WUNLOCK(inp);
|
||||
return (ECONNRESET);
|
||||
}
|
||||
tp = intotcpcb(inp);
|
||||
NET_EPOCH_ENTER(et);
|
||||
TCPDEBUG1();
|
||||
/*
|
||||
* For passively-created TFO connections, don't attempt a window
|
||||
|
Loading…
Reference in New Issue
Block a user