]> granicus.if.org Git - apache/commitdiff
Save a few bytes in conf pool.
authorChristophe Jaillet <jailletc36@apache.org>
Thu, 19 Feb 2015 06:37:21 +0000 (06:37 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Thu, 19 Feb 2015 06:37:21 +0000 (06:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1660800 13f79535-47bb-0310-9956-ffa450edef68

server/config.c

index d8afca7a348eb10afec0867faea9cdcbdeb98876..aea1ff1dbd3da8e0230221ee440362b171101f19 100644 (file)
@@ -1018,7 +1018,11 @@ static const char *invoke_cmd(const command_rec *cmd, cmd_parms *parms,
         return errmsg;
 
     case FLAG:
-        w = ap_getword_conf(parms->pool, &args);
+        /*
+         * This is safe to use temp_pool here, because the 'flag' itself is not
+         * forwarded as-is
+         */
+        w = ap_getword_conf(parms->temp_pool, &args);
 
         if (*w == '\0' || (strcasecmp(w, "on") && strcasecmp(w, "off")))
             return apr_pstrcat(parms->pool, cmd->name, " must be On or Off",