BUG/MAJOR: ssl: segfault upon an heartbeat request
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 13 May 2019 12:31:34 +0000 (14:31 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 13 May 2019 14:03:44 +0000 (16:03 +0200)
commit7e1770b1516febc8d18c2dad3816e5b344f8d2df
treee46e09b979f3407e9d460bf89343a1c426e0416d
parenta6cc7e872a0cbdee274dcba108eb7a8019721145
BUG/MAJOR: ssl: segfault upon an heartbeat request

7b5fd1e ("MEDIUM: connections: Move some fields from struct connection
to ssl_sock_ctx.") introduced a bug in the heartbleed mitigation code.

Indeed the code used conn->ctx instead of conn->xprt_ctx for the ssl
context, resulting in a null dereference.
src/ssl_sock.c