]> git.kaiwu.me - nginx.git/commit
Mail: fix session cleanup on error path
authorRoman Arutyunyan <arut@nginx.com>
Sat, 25 Apr 2026 12:41:36 +0000 (16:41 +0400)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Fri, 15 May 2026 12:25:01 +0000 (16:25 +0400)
commita4d5da3e401bf9c07c1a0856e682789f3a0f97b2
treeef828a19638f10c3b546617cdbeca4317322e15b
parent58a7bc3406ac8b9dc0e0afafc69ba42df56009e3
Mail: fix session cleanup on error path

Previously, when ngx_handle_read_event() or ngx_handle_write_event()
returned an error while handling an SMTP, POP3 or IMAP session, the
released session memory could be accessed after handling the error.
src/mail/ngx_mail_imap_handler.c
src/mail/ngx_mail_pop3_handler.c
src/mail/ngx_mail_proxy_module.c
src/mail/ngx_mail_smtp_handler.c