mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 06:03:31 -06:00
Events: added check for duplicate "events" directive.
This commit is contained in:
parent
ff2e304223
commit
a6ea2f8f48
@ -892,6 +892,10 @@ ngx_events_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
||||
ngx_conf_t pcf;
|
||||
ngx_event_module_t *m;
|
||||
|
||||
if (*(void **) conf) {
|
||||
return "is duplicate";
|
||||
}
|
||||
|
||||
/* count the number of the event modules and set up their indices */
|
||||
|
||||
ngx_event_max_module = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user