mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 06:03:31 -06:00
Mail: fixed buffer allocation for CRLF after Auth-SMTP-* headers.
There were no buffer overruns in real life as there is extra space allocated for the Auth-Login-Attempt counter.
This commit is contained in:
parent
c2c9a1c03e
commit
52c5ba0f37
@ -1170,9 +1170,9 @@ ngx_mail_auth_http_create_request(ngx_mail_session_t *s, ngx_pool_t *pool,
|
||||
+ sizeof("Client-IP: ") - 1 + s->connection->addr_text.len
|
||||
+ sizeof(CRLF) - 1
|
||||
+ sizeof("Client-Host: ") - 1 + s->host.len + sizeof(CRLF) - 1
|
||||
+ sizeof("Auth-SMTP-Helo: ") - 1 + s->smtp_helo.len
|
||||
+ sizeof("Auth-SMTP-From: ") - 1 + s->smtp_from.len
|
||||
+ sizeof("Auth-SMTP-To: ") - 1 + s->smtp_to.len
|
||||
+ sizeof("Auth-SMTP-Helo: ") - 1 + s->smtp_helo.len + sizeof(CRLF) - 1
|
||||
+ sizeof("Auth-SMTP-From: ") - 1 + s->smtp_from.len + sizeof(CRLF) - 1
|
||||
+ sizeof("Auth-SMTP-To: ") - 1 + s->smtp_to.len + sizeof(CRLF) - 1
|
||||
+ ahcf->header.len
|
||||
+ sizeof(CRLF) - 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user