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 2013/10/02 00:04:42 UTC

svn commit: r1528229 - in /httpd/mod_fcgid/trunk/modules/fcgid: fcgid_pm_unix.c fcgid_pm_win.c

Author: trawick
Date: Tue Oct  1 22:04:42 2013
New Revision: 1528229

URL: http://svn.apache.org/r1528229
Log:
Follow-up to r1378181:

Make sure server_hostname field is initialized so that garbage isn't
logged.

Modified:
    httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_unix.c
    httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_win.c

Modified: httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_unix.c
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_unix.c?rev=1528229&r1=1528228&r2=1528229&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_unix.c (original)
+++ httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_unix.c Tue Oct  1 22:04:42 2013
@@ -451,6 +451,9 @@ void procmgr_init_spawn_cmd(fcgid_comman
         apr_cpystrn(command->server_hostname, r->server->server_hostname,
                     sizeof command->server_hostname);
     }
+    else {
+        command->server_hostname[0] = '\0';
+    }
 
     get_cmd_options(r, command->cgipath, &command->cmdopts, &command->cmdenv);
 }

Modified: httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_win.c
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_win.c?rev=1528229&r1=1528228&r2=1528229&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_win.c (original)
+++ httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_win.c Tue Oct  1 22:04:42 2013
@@ -150,6 +150,9 @@ void procmgr_init_spawn_cmd(fcgid_comman
         apr_cpystrn(command->server_hostname, r->server->server_hostname,
                     sizeof command->server_hostname);
     }
+    else {
+        command->server_hostname[0] = '\0';
+    }
 
     get_cmd_options(r, command->cgipath, &command->cmdopts, &command->cmdenv);
 }