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:
parent
4d8f4de40e
commit
6b33ceb8e3
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user