Mercurial > nginx
changeset 9448:40e557c89e20
Mail: logging upstream to the error log with "smtp_auth none;".
Previously, it was never logged because of missing login.
| author | Sergey Kandaurov <pluknet@nginx.com> |
|---|---|
| date | Mon, 21 Jul 2025 17:44:28 +0400 |
| parents | bfd402b0b41c |
| children | a806e3b90394 |
| files | src/mail/ngx_mail_handler.c |
| diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mail/ngx_mail_handler.c Mon Jul 07 23:48:44 2025 +0400 +++ b/src/mail/ngx_mail_handler.c Mon Jul 21 17:44:28 2025 +0400 @@ -1006,14 +1006,12 @@ len -= p - buf; buf = p; - if (s->login.len == 0) { - return p; + if (s->login.len) { + p = ngx_snprintf(buf, len, ", login: \"%V\"", &s->login); + len -= p - buf; + buf = p; } - p = ngx_snprintf(buf, len, ", login: \"%V\"", &s->login); - len -= p - buf; - buf = p; - if (s->proxy == NULL) { return p; }
