]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* support/suexec.c (clean_env): Revert use of ap_calloc in
authorJoe Orton <jorton@apache.org>
Tue, 18 Feb 2020 08:27:43 +0000 (08:27 +0000)
committerJoe Orton <jorton@apache.org>
Tue, 18 Feb 2020 08:27:43 +0000 (08:27 +0000)
r1874156 which broke the build.
https://travis-ci.org/apache/httpd/builds/651858409

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874158 13f79535-47bb-0310-9956-ffa450edef68

support/suexec.c

index 1402f1297c9d61302bccbbcf7913b29b6eb14fd6..2ebacb9bee1ad0bfa00c84d04991f7cc1074dbc4 100644 (file)
@@ -239,7 +239,7 @@ static void clean_env(void)
 
     environ = &empty_ptr; /* VERY safe environment */
 
-    if ((cleanenv = (char **) ap_calloc(AP_ENVBUF, sizeof(char *))) == NULL) {
+    if ((cleanenv = (char **) calloc(AP_ENVBUF, sizeof(char *))) == NULL) {
         log_err("failed to malloc memory for environment\n");
         exit(123);
     }