]> git.kaiwu.me - haproxy.git/commit
BUILD: ssl: avoid a warning about conn not used with OpenSSL < 1.0.1
authorWilly Tarreau <w@1wt.eu>
Fri, 25 Apr 2014 19:40:27 +0000 (21:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Apr 2014 19:40:27 +0000 (21:40 +0200)
commit84815006a0a00ab00f0371c43685f09f6b5df8d8
tree3050a207b7ec26b2d04a3adbf588fcaa7b0534b4
parent6c09c2ceae796d0f48ec2711a200114f8ba928dc
BUILD: ssl: avoid a warning about conn not used with OpenSSL < 1.0.1

Building with a version of openssl without heartbeat gives this since
latest 29f037d ("MEDIUM: ssl: explicitly log failed handshakes after a
heartbeat") :

src/ssl_sock.c: In function 'ssl_sock_msgcbk':
src/ssl_sock.c:188: warning: unused variable 'conn'

Simply declare conn inside the ifdef. No backport is needed.
src/ssl_sock.c