Mercurial > hg > nginx
changeset 9288:f83cb031a4a4
Mail: fixed EXTERNAL auth to clear s->passwd.
The s->passwd field might be set after previous (failed) authentication
in the same session, and since EXTERNAL authentication did not touch it,
it was sent to the auth server.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 03 Jun 2024 18:03:07 +0300 |
parents | 32d4582c484d |
children | 20017bff0de8 |
files | src/mail/ngx_mail_handler.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mail/ngx_mail_handler.c Mon Jun 03 18:03:05 2024 +0300 +++ b/src/mail/ngx_mail_handler.c Mon Jun 03 18:03:07 2024 +0300 @@ -744,6 +744,8 @@ s->login.len = external.len; s->login.data = external.data; + ngx_str_null(&s->passwd); + ngx_log_debug1(NGX_LOG_DEBUG_MAIL, c->log, 0, "mail auth external: \"%V\"", &s->login);