diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-09-21 14:08:50 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-09-21 14:08:50 +0000 |
commit | e3f6cb85a0c8e5f4837c2e261b47f143e69975f7 (patch) | |
tree | f645e01f4686814242c2944106950e21907e6fc5 /src/mail/ngx_mail_handler.c | |
parent | 964c4a8c9ab7991d4267b54e65c61881c09fde78 (diff) | |
download | nginx-e3f6cb85a0c8e5f4837c2e261b47f143e69975f7.tar.gz nginx-e3f6cb85a0c8e5f4837c2e261b47f143e69975f7.zip |
fix "AUTH PLAIN [initial-response]" bug introduced in r1477
Diffstat (limited to 'src/mail/ngx_mail_handler.c')
-rw-r--r-- | src/mail/ngx_mail_handler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mail/ngx_mail_handler.c b/src/mail/ngx_mail_handler.c index d4082da87..e4985d3d2 100644 --- a/src/mail/ngx_mail_handler.c +++ b/src/mail/ngx_mail_handler.c @@ -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; |