mirror of
https://github.com/nginx/nginx.git
synced 2026-05-28 04:12:47 -04:00
fix "AUTH PLAIN [initial-response]" bug introduced in r1477
This commit is contained in:
parent
964c4a8c9a
commit
e3f6cb85a0
1 changed files with 1 additions and 1 deletions
|
|
@ -295,7 +295,7 @@ ngx_mail_auth_plain(ngx_mail_session_t *s, ngx_connection_t *c, ngx_uint_t n)
|
|||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
if (ngx_decode_base64(&plain, &arg[0]) != NGX_OK) {
|
||||
if (ngx_decode_base64(&plain, &arg[n]) != NGX_OK) {
|
||||
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
||||
"client sent invalid base64 encoding in AUTH PLAIN command");
|
||||
return NGX_MAIL_PARSE_INVALID_COMMAND;
|
||||
|
|
|
|||
Loading…
Reference in a new issue