MFC 1.81: In syncache_expand() fix a case that currently can't be triggered.
This commit is contained in:
parent
b80f61dff3
commit
ecd3f47aed
@ -766,8 +766,11 @@ syncache_expand(inc, th, sop, m)
|
||||
/*
|
||||
* If seg contains an ACK, but not for our SYN/ACK, send a RST.
|
||||
*/
|
||||
if (th->th_ack != sc->sc_iss + 1)
|
||||
if (th->th_ack != sc->sc_iss + 1) {
|
||||
if (sch == NULL)
|
||||
syncache_free(sc);
|
||||
return (0);
|
||||
}
|
||||
|
||||
so = syncache_socket(sc, *sop, m);
|
||||
if (so == NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user