]> git.kaiwu.me - nginx.git/commit
Mail: removed dead s->arg_start handling.
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 19 May 2021 00:13:22 +0000 (03:13 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 19 May 2021 00:13:22 +0000 (03:13 +0300)
commitfabe28259f4e191fee660a240ba347a0a8d2f1dc
tree846be8307c7be74b58919244c3fe41060d91793a
parent3c660ef59b545bf76f2fb2b6a37ca02bcae4b2fb
Mail: removed dead s->arg_start handling.

As discussed in the previous change, s->arg_start handling in the "done"
labels of ngx_mail_pop3_parse_command(), ngx_mail_imap_parse_command(),
and ngx_mail_smtp_parse_command() is wrong: s->arg_start cannot be
set there, as it is handled and cleared on all code paths where the
"done" labels are reached.  The relevant code is dead and now removed.
src/mail/ngx_mail.h
src/mail/ngx_mail_parse.c