Mercurial > hg > nginx
comparison src/stream/ngx_stream.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 | 68c106e6fa0a |
children | 0f203a2af17c |
comparison
equal
deleted
inserted
replaced
6192:7863b167dbf9 | 6193:78c06e5e1d76 |
---|---|
74 ngx_stream_module_t *module; | 74 ngx_stream_module_t *module; |
75 ngx_stream_conf_ctx_t *ctx; | 75 ngx_stream_conf_ctx_t *ctx; |
76 ngx_stream_core_srv_conf_t **cscfp; | 76 ngx_stream_core_srv_conf_t **cscfp; |
77 ngx_stream_core_main_conf_t *cmcf; | 77 ngx_stream_core_main_conf_t *cmcf; |
78 | 78 |
79 if (*(ngx_stream_conf_ctx_t **) conf) { | |
80 return "is duplicate"; | |
81 } | |
82 | |
79 /* the main stream context */ | 83 /* the main stream context */ |
80 | 84 |
81 ctx = ngx_pcalloc(cf->pool, sizeof(ngx_stream_conf_ctx_t)); | 85 ctx = ngx_pcalloc(cf->pool, sizeof(ngx_stream_conf_ctx_t)); |
82 if (ctx == NULL) { | 86 if (ctx == NULL) { |
83 return NGX_CONF_ERROR; | 87 return NGX_CONF_ERROR; |