DEBUG: ssl: make sure we never change a servername on established connections
authorWilly Tarreau <w@1wt.eu>
Thu, 23 Dec 2021 10:12:13 +0000 (11:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 30 Dec 2021 09:48:04 +0000 (10:48 +0100)
commitdc857216b170245d0be388deaad0c2a8a73e290d
treeaf5b7e1b031b57a56a218ad458c5e39c50293963
parent8bb445d66b1bfddd77e3cf25973a642212d90880
DEBUG: ssl: make sure we never change a servername on established connections

Since this case was already met previously with commit 655dec81b
("BUG/MINOR: backend: do not set sni on connection reuse"), let's make
sure that we don't change reused connection settings. This could be
generalized to most settings that are only in effect before the handshake
in fact (like set_alpn and a few other ones).

(cherry picked from commit 77bfa66124e8532a4ecbe5025657574bb43b7160)
[wt: it's not enabled in default builds thus is safe to backport; it may
 help sort out certain future bug reports in field]
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/ssl_sock.c