From a8825520b785d592467c45e183ad8213cb7bf891 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 15 Oct 2018 13:20:07 +0200 Subject: [PATCH] BUILD: ssl: fix another null-deref warning in ssl_sock_switchctx_cbk() This null-deref cannot happen either as there necesarily is a listener where this function is called. Let's use __objt_listener() to address this. This may be backported to 1.8. --- 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 baedc33c4..41833768d 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -2127,7 +2127,7 @@ static int ssl_sock_switchctx_cbk(SSL *ssl, int *al, void *arg) int i; conn = SSL_get_ex_data(ssl, ssl_app_data_index); - s = objt_listener(conn->target)->bind_conf; + s = __objt_listener(conn->target)->bind_conf; if (s->ssl_conf.early_data) allow_early = 1; -- 2.47.3