mirror of
https://github.com/nginx/nginx.git
synced 2026-06-26 03:42:06 +00:00
Events: added check for duplicate "events" directive.
This commit is contained in:
parent
ff2e304223
commit
a6ea2f8f48
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue