[nginx] svn commit: r5003 - trunk/src/event
vbart at nginx.com
vbart at nginx.com
Tue Jan 8 14:03:37 UTC 2013
Author: vbart
Date: 2013-01-08 14:03:37 +0000 (Tue, 08 Jan 2013)
New Revision: 5003
URL: http://trac.nginx.org/nginx/changeset/5003/nginx
Log:
Events: added check for duplicate "events" directive.
Modified:
trunk/src/event/ngx_event.c
Modified: trunk/src/event/ngx_event.c
===================================================================
--- trunk/src/event/ngx_event.c 2013-01-08 14:01:57 UTC (rev 5002)
+++ trunk/src/event/ngx_event.c 2013-01-08 14:03:37 UTC (rev 5003)
@@ -892,6 +892,10 @@
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;
More information about the nginx-devel
mailing list