Events: added check for duplicate "events" directive.

This commit is contained in:
Valentin Bartenev 2013-01-08 14:03:37 +00:00
parent ff2e304223
commit a6ea2f8f48

View File

@ -892,6 +892,10 @@ ngx_events_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
ngx_conf_t pcf; ngx_conf_t pcf;
ngx_event_module_t *m; ngx_event_module_t *m;
if (*(void **) conf) {
return "is duplicate";
}
/* count the number of the event modules and set up their indices */ /* count the number of the event modules and set up their indices */
ngx_event_max_module = 0; ngx_event_max_module = 0;