Mercurial > hg > nginx
diff src/mail/ngx_mail_handler.c @ 1494:6535fb51976a
fix "AUTH PLAIN [initial-response]" bug introduced in r1477
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 21 Sep 2007 14:08:50 +0000 |
parents | 93ff27726d2e |
children | e584e946e198 |
line wrap: on
line diff
--- a/src/mail/ngx_mail_handler.c Fri Sep 21 13:47:33 2007 +0000 +++ b/src/mail/ngx_mail_handler.c Fri Sep 21 14:08:50 2007 +0000 @@ -295,7 +295,7 @@ 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;