comparison src/mail/ngx_mail_auth_http_module.c @ 1299:65cebdc99554 stable-0.5

r1286 merge: fix memory allocation for auth_http_header
author Igor Sysoev <igor@sysoev.ru>
date Fri, 13 Jul 2007 10:43:35 +0000
parents bde5e4134759
children 3e045031ee3b fa67e7914b70
comparison
equal deleted inserted replaced
1282:48ce691e1b7c 1299:65cebdc99554
1167 + sizeof("Auth-Protocol: imap" CRLF) - 1 1167 + sizeof("Auth-Protocol: imap" CRLF) - 1
1168 + sizeof("Auth-Login-Attempt: ") - 1 + NGX_INT_T_LEN 1168 + sizeof("Auth-Login-Attempt: ") - 1 + NGX_INT_T_LEN
1169 + sizeof(CRLF) - 1 1169 + sizeof(CRLF) - 1
1170 + sizeof("Client-IP: ") - 1 + s->connection->addr_text.len 1170 + sizeof("Client-IP: ") - 1 + s->connection->addr_text.len
1171 + sizeof(CRLF) - 1 1171 + sizeof(CRLF) - 1
1172 + ahcf->header.len
1172 + sizeof(CRLF) - 1; 1173 + sizeof(CRLF) - 1;
1173 1174
1174 b = ngx_create_temp_buf(pool, len); 1175 b = ngx_create_temp_buf(pool, len);
1175 if (b == NULL) { 1176 if (b == NULL) {
1176 return NULL; 1177 return NULL;