summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-07-13 10:43:35 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-07-13 10:43:35 +0000
commit537cd5a5c45e6fc54ea9434a5cb8719b4ad10a3b (patch)
treebfc86ea615d5936b94757b006aaa40b3cc8c01a1
parenta20ac66c30b331a7813c8a6a609c0297be8d4a5c (diff)
downloadnginx-537cd5a5c45e6fc54ea9434a5cb8719b4ad10a3b.tar.gz
nginx-537cd5a5c45e6fc54ea9434a5cb8719b4ad10a3b.tar.bz2
r1286 merge:
fix memory allocation for auth_http_header
-rw-r--r--src/mail/ngx_mail_auth_http_module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mail/ngx_mail_auth_http_module.c b/src/mail/ngx_mail_auth_http_module.c
index 8028c957a..c7e0fc038 100644
--- a/src/mail/ngx_mail_auth_http_module.c
+++ b/src/mail/ngx_mail_auth_http_module.c
@@ -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);