mirror of
https://github.com/nginx/nginx.git
synced 2026-06-26 20:01:45 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue