You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2012/04/11 02:02:09 UTC

svn commit: r1312054 - /httpd/mod_fcgid/trunk/modules/fcgid/fcgid_conf.c

Author: trawick
Date: Wed Apr 11 00:02:08 2012
New Revision: 1312054

URL: http://svn.apache.org/viewvc?rev=1312054&view=rev
Log:
validate that FcgidWin32PreventOrphans is not configured in a virtual host
(tweak to r1311569)

Modified:
    httpd/mod_fcgid/trunk/modules/fcgid/fcgid_conf.c

Modified: httpd/mod_fcgid/trunk/modules/fcgid/fcgid_conf.c
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/fcgid_conf.c?rev=1312054&r1=1312053&r2=1312054&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/modules/fcgid/fcgid_conf.c (original)
+++ httpd/mod_fcgid/trunk/modules/fcgid/fcgid_conf.c Wed Apr 11 00:02:08 2012
@@ -775,6 +775,11 @@ const char *set_win32_prevent_process_or
     server_rec *s = cmd->server;
     fcgid_server_conf *config = ap_get_module_config(s->module_config,
                                                      &fcgid_module);
+    const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
+
+    if (err != NULL) {
+        return err;
+    }
 
     if (config->hJobObjectForAutoCleanup == NULL) {
         /* Create Win32 job object to prevent CGI process oprhaning