mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-27 17:16:45 -04:00
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.
This commit is contained in:
parent
b729077710
commit
a8825520b7
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue