nginx/src/mail
Maxim Dounin abe660636c Mail: fixed duplicate resolving.
When using SMTP with SSL and resolver, read events might be enabled
during address resolving, leading to duplicate ngx_mail_ssl_handshake_handler()
calls if something arrives from the client, and duplicate session
initialization - including starting another resolving.  This can lead
to a segmentation fault if the session is closed after first resolving
finished.  Fix is to block read events while resolving.

Reported by Robert Norris,
http://mailman.nginx.org/pipermail/nginx/2019-July/058204.html.
2019-08-01 13:50:07 +03:00
..
ngx_mail_auth_http_module.c Mail: support SASL EXTERNAL (RFC 4422). 2016-10-08 18:05:00 +11:00
ngx_mail_core_module.c Multiple addresses in "listen". 2019-03-15 15:45:56 +03:00
ngx_mail_handler.c SSL: detect "listen ... ssl" without certificates (ticket #178). 2018-04-24 15:29:01 +03:00
ngx_mail_imap_handler.c Mail: make it possible to disable SASL EXTERNAL. 2017-01-12 19:22:03 +03:00
ngx_mail_imap_module.c Mail: support SASL EXTERNAL (RFC 4422). 2016-10-08 18:05:00 +11:00
ngx_mail_imap_module.h Copyright updated. 2012-01-18 15:07:43 +00:00
ngx_mail_parse.c Mail: support SASL EXTERNAL (RFC 4422). 2016-10-08 18:05:00 +11:00
ngx_mail_pop3_handler.c Mail: make it possible to disable SASL EXTERNAL. 2017-01-12 19:22:03 +03:00
ngx_mail_pop3_module.c Mail: don't emit separator in capability lists for APOP. 2017-03-06 17:56:23 +03:00
ngx_mail_pop3_module.h Copyright updated. 2012-01-18 15:07:43 +00:00
ngx_mail_proxy_module.c Fixed worker_shutdown_timeout in various cases. 2017-11-20 16:31:07 +03:00
ngx_mail_smtp_handler.c Mail: fixed duplicate resolving. 2019-08-01 13:50:07 +03:00
ngx_mail_smtp_module.c Win32: fixed some warnings reported by Borland C. 2016-12-24 18:01:14 +03:00
ngx_mail_smtp_module.h Copyright updated. 2012-01-18 15:07:43 +00:00
ngx_mail_ssl_module.c SSL: fixed potential leak on memory allocation errors. 2019-03-03 16:48:39 +03:00
ngx_mail_ssl_module.h SSL: detect "listen ... ssl" without certificates (ticket #178). 2018-04-24 15:29:01 +03:00
ngx_mail.c Multiple addresses in "listen". 2019-03-15 15:45:56 +03:00
ngx_mail.h Multiple addresses in "listen". 2019-03-15 15:45:56 +03:00