diff options
author | jlemon <jlemon@FreeBSD.org> | 2002-02-20 16:47:11 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 2002-02-20 16:47:11 +0000 |
commit | cc3e7eecb1b1f969de96f82283e0a193ed58123b (patch) | |
tree | 3a638bdd6ccca9cdedd431c9a1f37be6078e33c2 | |
parent | fd666ea1684cca65c3d0364a2950c0fdee2d3f13 (diff) | |
download | FreeBSD-src-cc3e7eecb1b1f969de96f82283e0a193ed58123b.zip FreeBSD-src-cc3e7eecb1b1f969de96f82283e0a193ed58123b.tar.gz |
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.
-rw-r--r-- | sys/netinet/tcp_syncache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index 669a3b6..099861a 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -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) { |