MFC 1.81: In syncache_expand() fix a case that currently can't be triggered.

This commit is contained in:
andre 2006-01-31 16:03:42 +00:00
parent b80f61dff3
commit ecd3f47aed

View File

@ -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) {