mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 01:12:40 +08:00
OCSP stapling: fixed using wrong responder with multiple certs.
This commit is contained in:
parent
6831af304e
commit
13bf2759c8
@ -376,6 +376,7 @@ ngx_ssl_stapling_responder(ngx_conf_t *cf, ngx_ssl_t *ssl,
|
||||
{
|
||||
ngx_url_t u;
|
||||
char *s;
|
||||
ngx_str_t rsp;
|
||||
STACK_OF(OPENSSL_STRING) *aia;
|
||||
|
||||
if (responder->len == 0) {
|
||||
@ -403,6 +404,8 @@ ngx_ssl_stapling_responder(ngx_conf_t *cf, ngx_ssl_t *ssl,
|
||||
return NGX_DECLINED;
|
||||
}
|
||||
|
||||
responder = &rsp;
|
||||
|
||||
responder->len = ngx_strlen(s);
|
||||
responder->data = ngx_palloc(cf->pool, responder->len);
|
||||
if (responder->data == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user