From b7a8f2a08f6a2f777de5e0cef85aed615a9f057d Mon Sep 17 00:00:00 2001 From: Vladimir Homutov Date: Tue, 16 Jun 2015 23:28:38 +0300 Subject: Disabled duplicate http, mail, and stream blocks. Such configurations have very limited use, introduce various problems and are not officially supported. --- src/mail/ngx_mail.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mail') diff --git a/src/mail/ngx_mail.c b/src/mail/ngx_mail.c index 38664bc87..962ae8be5 100644 --- a/src/mail/ngx_mail.c +++ b/src/mail/ngx_mail.c @@ -76,6 +76,10 @@ ngx_mail_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) ngx_mail_core_srv_conf_t **cscfp; ngx_mail_core_main_conf_t *cmcf; + if (*(ngx_mail_conf_ctx_t **) conf) { + return "is duplicate"; + } + /* the main mail context */ ctx = ngx_pcalloc(cf->pool, sizeof(ngx_mail_conf_ctx_t)); -- cgit