Mercurial > hg > nginx
comparison src/mail/ngx_mail.c @ 6193:78c06e5e1d76
Disabled duplicate http, mail, and stream blocks.
Such configurations have very limited use, introduce various problems and
are not officially supported.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Tue, 16 Jun 2015 23:28:38 +0300 |
parents | 1729d8d3eb3a |
children | 0f203a2af17c |
comparison
equal
deleted
inserted
replaced
6192:7863b167dbf9 | 6193:78c06e5e1d76 |
---|---|
74 ngx_mail_module_t *module; | 74 ngx_mail_module_t *module; |
75 ngx_mail_conf_ctx_t *ctx; | 75 ngx_mail_conf_ctx_t *ctx; |
76 ngx_mail_core_srv_conf_t **cscfp; | 76 ngx_mail_core_srv_conf_t **cscfp; |
77 ngx_mail_core_main_conf_t *cmcf; | 77 ngx_mail_core_main_conf_t *cmcf; |
78 | 78 |
79 if (*(ngx_mail_conf_ctx_t **) conf) { | |
80 return "is duplicate"; | |
81 } | |
82 | |
79 /* the main mail context */ | 83 /* the main mail context */ |
80 | 84 |
81 ctx = ngx_pcalloc(cf->pool, sizeof(ngx_mail_conf_ctx_t)); | 85 ctx = ngx_pcalloc(cf->pool, sizeof(ngx_mail_conf_ctx_t)); |
82 if (ctx == NULL) { | 86 if (ctx == NULL) { |
83 return NGX_CONF_ERROR; | 87 return NGX_CONF_ERROR; |