]> git.kaiwu.me - nginx.git/commitdiff
r1286 merge:
authorIgor Sysoev <igor@sysoev.ru>
Fri, 13 Jul 2007 10:43:35 +0000 (10:43 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 13 Jul 2007 10:43:35 +0000 (10:43 +0000)
fix memory allocation for auth_http_header

src/mail/ngx_mail_auth_http_module.c

index 8028c957a7853955fc5fcc76af7986a1aa465500..c7e0fc03831842127da47cadee89a7d3a2361d51 100644 (file)
@@ -1169,6 +1169,7 @@ ngx_mail_auth_http_create_request(ngx_mail_session_t *s, ngx_pool_t *pool,
                 + sizeof(CRLF) - 1
           + sizeof("Client-IP: ") - 1 + s->connection->addr_text.len
                 + sizeof(CRLF) - 1
+          + ahcf->header.len
           + sizeof(CRLF) - 1;
 
     b = ngx_create_temp_buf(pool, len);