fix segfault when many auth failures occurred
diff --git a/src/imap/ngx_imap_auth_http_module.c b/src/imap/ngx_imap_auth_http_module.c
index 85728f4..867707f 100644
--- a/src/imap/ngx_imap_auth_http_module.c
+++ b/src/imap/ngx_imap_auth_http_module.c
@@ -489,10 +489,10 @@
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;
}