From: Christophe Jaillet Date: Thu, 19 Feb 2015 06:37:21 +0000 (+0000) Subject: Save a few bytes in conf pool. X-Git-Tag: 2.5.0-alpha~3453 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8e33f6f61c9fc6d27cfeceaaa80d41f9373b2a7;p=apache Save a few bytes in conf pool. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1660800 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/config.c b/server/config.c index d8afca7a34..aea1ff1dbd 100644 --- a/server/config.c +++ b/server/config.c @@ -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",