Klaus Demo nginx / e3f6cb8
fix "AUTH PLAIN [initial-response]" bug introduced in r1477 Igor Sysoev 14 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
294294 return NGX_ERROR;
295295 }
296296
297 if (ngx_decode_base64(&plain, &arg[0]) != NGX_OK) {
297 if (ngx_decode_base64(&plain, &arg[n]) != NGX_OK) {
298298 ngx_log_error(NGX_LOG_INFO, c->log, 0,
299299 "client sent invalid base64 encoding in AUTH PLAIN command");
300300 return NGX_MAIL_PARSE_INVALID_COMMAND;