changeset 854:1673f197bc62

fix segfault when many auth failures occurred
author Igor Sysoev <igor@sysoev.ru>
date Fri, 17 Nov 2006 08:46:34 +0000
parents a7c8cbb4c55f
children b006f30d6a2f
files src/imap/ngx_imap_auth_http_module.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/ngx_imap_auth_http_module.c
+++ b/src/imap/ngx_imap_auth_http_module.c
@@ -489,10 +489,10 @@ ngx_imap_auth_http_process_headers(ngx_i
                 ctx->errmsg.data = ctx->header_start;
 
                 if (s->protocol == NGX_IMAP_POP3_PROTOCOL) {
-                    size = sizeof("-ERR") - 1 + len + sizeof(CRLF) - 1;
+                    size = sizeof("-ERR ") - 1 + len + sizeof(CRLF) - 1;
 
                 } else {
-                    size = s->tag.len + sizeof("NO") - 1 + len
+                    size = s->tag.len + sizeof("NO ") - 1 + len
                            + sizeof(CRLF) - 1;
                 }