mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-10 07:49:54 +00:00
BUG: ssl: fix crt-list for clients not supporting SNI
I left a mistake in my previous patch bringing the crt-list feature, it breaks clients with no SNI support. Also remove the useless wildp = NULL as per a previous discussion.
This commit is contained in:
parent
cad8234b00
commit
79274e2c40
@ -197,7 +197,7 @@ static int ssl_sock_switchctx_cbk(SSL *ssl, int *al, struct bind_conf *s)
|
|||||||
if (!servername) {
|
if (!servername) {
|
||||||
return (s->strict_sni ?
|
return (s->strict_sni ?
|
||||||
SSL_TLSEXT_ERR_ALERT_FATAL :
|
SSL_TLSEXT_ERR_ALERT_FATAL :
|
||||||
SSL_TLSEXT_ERR_ALERT_WARNING);
|
SSL_TLSEXT_ERR_NOACK);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < trash.size; i++) {
|
for (i = 0; i < trash.size; i++) {
|
||||||
@ -218,7 +218,6 @@ static int ssl_sock_switchctx_cbk(SSL *ssl, int *al, struct bind_conf *s)
|
|||||||
node = n;
|
node = n;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
wildp = NULL; /* never match a wildcard after matching a neg */
|
|
||||||
}
|
}
|
||||||
if (!node && wildp) {
|
if (!node && wildp) {
|
||||||
/* lookup in wildcards names */
|
/* lookup in wildcards names */
|
||||||
|
Loading…
Reference in New Issue
Block a user