mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 23:56:57 +02:00
BUG/MINOR; ssl: Don't assume we have a ssl_bind_conf because a SNI is matched.
We only have a ssl_bind_conf if crt-list is used, however we can still match a certificate SNI, so don't assume we have a ssl_bind_conf.
This commit is contained in:
parent
9e45b33f7e
commit
35a63cc1c7
@ -2267,10 +2267,12 @@ static int ssl_sock_switchctx_cbk(SSL *ssl, int *al, void *arg)
|
||||
/* switch ctx */
|
||||
struct ssl_bind_conf *conf = container_of(node, struct sni_ctx, name)->conf;
|
||||
ssl_sock_switchctx_set(ssl, container_of(node, struct sni_ctx, name)->ctx);
|
||||
if (conf) {
|
||||
methodVersions[conf->ssl_methods.min].ssl_set_version(ssl, SET_MIN);
|
||||
methodVersions[conf->ssl_methods.max].ssl_set_version(ssl, SET_MAX);
|
||||
if (conf->early_data)
|
||||
allow_early = 1;
|
||||
}
|
||||
goto allow_early;
|
||||
}
|
||||
#if (!defined SSL_NO_GENERATE_CERTIFICATES)
|
||||
|
Loading…
Reference in New Issue
Block a user