mirror of
https://github.com/nginx/nginx.git
synced 2026-08-28 04:39:05 +00:00
fix segfault when many auth failures occurred
This commit is contained in:
parent
8c5f37e7d3
commit
ae821ceb41
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue