mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
OCSP stapling: properly check if there is ssl.ctx.
This fixes segfault if stapling was enabled in a server without a certificate configured (and hence no ssl.ctx).
This commit is contained in:
@@ -737,7 +737,7 @@ ngx_http_ssl_init(ngx_conf_t *cf)
|
||||
|
||||
sscf = cscfp[s]->ctx->srv_conf[ngx_http_ssl_module.ctx_index];
|
||||
|
||||
if (!sscf->stapling) {
|
||||
if (sscf->ssl.ctx == NULL || !sscf->stapling) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user