]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD/MINOR: ssl: fix build failure introduced by recent patch
authorWilly Tarreau <w@1wt.eu>
Tue, 12 May 2015 08:30:12 +0000 (10:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 May 2015 08:30:12 +0000 (10:30 +0200)
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

index d51d7821c359d681d82a11d13d7175c7dda8fe95..6cfdc73f1d831fccd34bbf3c97b037497a1ba366 100644 (file)
@@ -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;