When expanding a syncache entry into a socket, inherit the socket options

from the current listen socket instead of the cached (and possibly stale)
TCB pointer.
This commit is contained in:
jlemon 2002-02-20 16:47:11 +00:00
parent 30280e0d8a
commit f4d85bfd9c

View File

@ -666,7 +666,7 @@ syncache_socket(sc, lso)
tp->rcv_wnd = sc->sc_wnd;
tp->rcv_adv += tp->rcv_wnd;
tp->t_flags = sc->sc_tp->t_flags & (TF_NOPUSH|TF_NODELAY);
tp->t_flags = sototcpcb(lso)->t_flags & (TF_NOPUSH|TF_NODELAY);
if (sc->sc_flags & SCF_NOOPT)
tp->t_flags |= TF_NOOPT;
if (sc->sc_flags & SCF_WINSCALE) {