]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Save a few bytes in conf pool when parsing some directives. Use temp_pool when applic...
authorChristophe Jaillet <jailletc36@apache.org>
Thu, 5 Feb 2015 21:03:04 +0000 (21:03 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Thu, 5 Feb 2015 21:03:04 +0000 (21:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1657692 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_filter.c
os/unix/unixd.c
server/mpm_common.c

index 8fb872cdbf28f17efe56a98ab2f397ad1821887f..bd2cf7ac1766b0dc6f2adb0b7b3f60ef0cd1dcac 100644 (file)
@@ -362,7 +362,7 @@ static const char *filter_protocol(cmd_parms *cmd, void *CFG, const char *fname,
     }
 
     /* Now set flags from our args */
-    for (arg = apr_strtok(apr_pstrdup(cmd->pool, proto), sep, &tok);
+    for (arg = apr_strtok(apr_pstrdup(cmd->temp_pool, proto), sep, &tok);
          arg; arg = apr_strtok(NULL, sep, &tok)) {
 
         if (!strcasecmp(arg, "change=yes")) {
index bcb97a57db04edbb1f0ece9555c900ba574c33be..d7042bf6867012853d952a334c7efe0d91f3bb6c 100644 (file)
@@ -74,7 +74,7 @@ AP_DECLARE(void) ap_unixd_set_rlimit(cmd_parms *cmd, struct rlimit **plimit,
         return;
     }
 
-    if (*(str = ap_getword_conf(cmd->pool, &arg)) != '\0') {
+    if (*(str = ap_getword_conf(cmd->temp_pool, &arg)) != '\0') {
         if (!strcasecmp(str, "max")) {
             cur = limit->rlim_max;
         }
@@ -88,7 +88,7 @@ AP_DECLARE(void) ap_unixd_set_rlimit(cmd_parms *cmd, struct rlimit **plimit,
         return;
     }
 
-    if (arg2 && (*(str = ap_getword_conf(cmd->pool, &arg2)) != '\0')) {
+    if (arg2 && (*(str = ap_getword_conf(cmd->temp_pool, &arg2)) != '\0')) {
         max = atol(str);
     }
 
index 387c5cd06b0fc63aa0dcf56c1772d82e08b5b9e0..d5b446d2c5a5c4c79e84099fd92831cdfade90c3 100644 (file)
@@ -360,7 +360,7 @@ const char *ap_mpm_set_coredumpdir(cmd_parms *cmd, void *dummy,
         return err;
     }
 
-    fname = ap_server_root_relative(cmd->pool, arg);
+    fname = ap_server_root_relative(cmd->temp_pool, arg);
     if (!fname) {
         return apr_pstrcat(cmd->pool, "Invalid CoreDumpDirectory path ",
                            arg, NULL);