From: Willy Tarreau Date: Tue, 12 May 2015 08:30:12 +0000 (+0200) Subject: BUILD/MINOR: ssl: fix build failure introduced by recent patch X-Git-Tag: v1.6-dev2~126 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e26bf05115f7336f3493302542a1576ec6955dbc;p=thirdparty%2Fhaproxy.git BUILD/MINOR: ssl: fix build failure introduced by recent patch Baptiste reported that commit 0a9a2b8 ("MEDIUM: sample change the prototype of sample-fetches and converters functions") broke the build of ssl_sock.c when using openssl-1.0.2 because one missed replacement of sess with smp->sess. No backport is needed. --- diff --git a/src/ssl_sock.c b/src/ssl_sock.c index d51d7821c3..6cfdc73f1d 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -3740,7 +3740,7 @@ smp_fetch_ssl_fc_alpn(const struct arg *args, struct sample *smp, const char *kw smp->flags = SMP_F_CONST; smp->type = SMP_T_STR; - conn = objt_conn(sess->origin); + conn = objt_conn(smp->sess->origin); if (!conn || !conn->xprt_ctx || conn->xprt != &ssl_sock) return 0;