]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: ssl: properly reset the reused_sess during a forced handshake
authorWilly Tarreau <w@1wt.eu>
Thu, 22 Dec 2016 20:54:21 +0000 (21:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Dec 2016 20:54:21 +0000 (21:54 +0100)
commit30fd4bd8446dd7104b7d1cae9e762c7d1405171a
tree18cb09ce70c7674d44530ad9941fb455166bd4da
parent368780334cb1b4c46bcd666af353c177619f4774
BUG/MEDIUM: ssl: properly reset the reused_sess during a forced handshake

We have a bug when SSL reuse is disabled on the server side : we reset
the context but do not set it to NULL, causing a multiple free of the
same entry. It seems like this bug cannot appear as-is with the current
code (or the conditions to get it are not obvious) but it did definitely
strike when trying to fix another bug with the SNI which forced a new
handshake.

This fix should be backported to 1.7, 1.6 and 1.5.
src/ssl_sock.c