mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08:00
fix memory corruption in $ssl_client_cert
This commit is contained in:
parent
b5142550cc
commit
365d663cc2
@ -2011,7 +2011,7 @@ ngx_ssl_get_certificate(ngx_connection_t *c, ngx_pool_t *pool, ngx_str_t *s)
|
||||
|
||||
p = s->data;
|
||||
|
||||
for (i = 0; i < len; i++) {
|
||||
for (i = 0; i < cert.len - 1; i++) {
|
||||
*p++ = cert.data[i];
|
||||
if (cert.data[i] == LF) {
|
||||
*p++ = '\t';
|
||||
|
Loading…
Reference in New Issue
Block a user