changeset 5002:39c597272c8d

Events: added check for duplicate "events" directive.
author Valentin Bartenev <vbart@nginx.com>
date Tue, 08 Jan 2013 14:03:37 +0000
parents c37b9a17514d
children 82234f3f5ca2
files src/event/ngx_event.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/event/ngx_event.c
+++ b/src/event/ngx_event.c
@@ -892,6 +892,10 @@ ngx_events_block(ngx_conf_t *cf, ngx_com
     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;