]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl: free ctx when libssl doesn't support NPN
authorLukas Tribus <lukas@ltri.eu>
Mon, 26 Nov 2018 21:57:17 +0000 (22:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 27 Nov 2018 03:32:32 +0000 (04:32 +0100)
commit7706b85e0cffa941028318d81b3a67dc724abbf9
tree00f06b7bd8c628bc9703f25ffe5171f14985ac70
parent7f0165e3990ee8ceca3a6fbb6d4e2728eb889730
MINOR: ssl: free ctx when libssl doesn't support NPN

The previous fix da95fd90 ("BUILD/MINOR: ssl: fix build with non-alpn/
non-npn libssl") does fix the build in old OpenSSL release, but I
overlooked that the ctx is only freed when NPN is supported.

Fix this by moving the #endif to the proper place (this was broken in
c7566001 ("MINOR: server: Add "alpn" and "npn" keywords")).
src/ssl_sock.c