diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-11-17 08:46:34 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-11-17 08:46:34 +0000 |
commit | ae821ceb41fdebbc8f3814c3cac5d725c4b70c05 (patch) | |
tree | 4a07c67595d4e49ef46ba7988fcc17ffc836f571 /src/imap/ngx_imap_auth_http_module.c | |
parent | 8c5f37e7d3081598090669a74c34facee96134b1 (diff) | |
download | nginx-ae821ceb41fdebbc8f3814c3cac5d725c4b70c05.tar.gz nginx-ae821ceb41fdebbc8f3814c3cac5d725c4b70c05.zip |
fix segfault when many auth failures occurred
Diffstat (limited to 'src/imap/ngx_imap_auth_http_module.c')
-rw-r--r-- | src/imap/ngx_imap_auth_http_module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imap/ngx_imap_auth_http_module.c b/src/imap/ngx_imap_auth_http_module.c index 85728f46a..867707f90 100644 --- 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_imap_session_t *s, 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; } |