mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
Mail: discard pipelined commands after SMTP STARTTLS.
The bug had appeared in nginx 1.5.6 (04e43d03e153). Reported by Chris Boulton.
This commit is contained in:
parent
1fe0f6a9b9
commit
44f45a5466
@ -777,6 +777,9 @@ ngx_mail_smtp_starttls(ngx_mail_session_t *s, ngx_connection_t *c)
|
||||
ngx_str_null(&s->smtp_from);
|
||||
ngx_str_null(&s->smtp_to);
|
||||
|
||||
s->buffer->pos = s->buffer->start;
|
||||
s->buffer->last = s->buffer->start;
|
||||
|
||||
c->read->handler = ngx_mail_starttls_handler;
|
||||
return NGX_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user