Mercurial > hg > nginx
diff src/http/ngx_http_request.c @ 8568:0875101c08f7 quic
Merged with the default branch.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 01 Oct 2020 12:21:11 +0100 |
parents | bed310672f39 eb940fe579cf |
children | 71b7453fb11f |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c Thu Oct 01 12:10:37 2020 +0100 +++ b/src/http/ngx_http_request.c Thu Oct 01 12:21:11 2020 +0100 @@ -988,7 +988,10 @@ c->ssl->buffer_size = sscf->buffer_size; if (sscf->ssl.ctx) { - SSL_set_SSL_CTX(ssl_conn, sscf->ssl.ctx); + if (SSL_set_SSL_CTX(ssl_conn, sscf->ssl.ctx) == NULL) { + *ad = SSL_AD_INTERNAL_ERROR; + return SSL_TLSEXT_ERR_ALERT_FATAL; + } /* * SSL_set_SSL_CTX() only changes certs as of 1.0.0d