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:
Jonathan Lemon 2002-02-20 16:47:11 +00:00
parent 4d8f4de40e
commit 6b33ceb8e3

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