mirror of
https://github.com/nginx/nginx.git
synced 2025-06-19 19:21:45 +08: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:
parent
82989420ad
commit
0d7a7e91cf
@ -737,7 +737,7 @@ ngx_http_ssl_init(ngx_conf_t *cf)
|
|||||||
|
|
||||||
sscf = cscfp[s]->ctx->srv_conf[ngx_http_ssl_module.ctx_index];
|
sscf = cscfp[s]->ctx->srv_conf[ngx_http_ssl_module.ctx_index];
|
||||||
|
|
||||||
if (!sscf->stapling) {
|
if (sscf->ssl.ctx == NULL || !sscf->stapling) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user