diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2021-06-22 23:03:44 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2021-06-22 23:03:44 +0000 |
commit | c4804b6b0b94f1c7228b62114bf294d63f6db2b7 (patch) | |
tree | 9ac96fb2060543266407400637e20872f047469b | |
parent | 014a40f8f643a5dad6a6ba5c4bf6ea5d4f445fe6 (diff) | |
download | src-c4804b6b0b94f1c7228b62114bf294d63f6db2b7.tar.gz src-c4804b6b0b94f1c7228b62114bf294d63f6db2b7.zip |
Unbreak TFO, that was broken with 8d5719aa74f. These two assignments
are unneccessary and used to be there before TFO as an invariant. With
TFO and after 8d5719aa74f the "so" value is still needed.
Reported & tested by: tuexen
Fixes: 8d5719aa74f1d1441ee5ee365d45d53f934e81d6
-rw-r--r-- | sys/netinet/tcp_syncache.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index 35d9c091ab96..4be888f22a37 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -1491,10 +1491,6 @@ syncache_add(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th, tfo_pending = tp->t_tfo_pending; } - /* By the time we drop the lock these should no longer be used. */ - so = NULL; - tp = NULL; - #ifdef MAC if (mac_syncache_init(&maclabel) != 0) { INP_RUNLOCK(inp); |