From e26bf05115f7336f3493302542a1576ec6955dbc Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 12 May 2015 10:30:12 +0200 Subject: [PATCH] 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. --- src/ssl_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl_sock.c b/src/ssl_sock.c index d51d7821c..6cfdc73f1 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; -- 2.47.3