fix memory corruption in $ssl_client_cert

This commit is contained in:
Igor Sysoev 2009-07-27 11:51:12 +00:00
parent b5142550cc
commit 365d663cc2

View File

@ -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';