From: Christophe Jaillet Date: Thu, 19 Feb 2015 06:37:21 +0000 (+0000) Subject: Save a few bytes in conf pool. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3b2a6061a890bec81d949ecd8eb60a0c7f760a9;p=thirdparty%2Fapache%2Fhttpd.git 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 d8afca7a348..aea1ff1dbd3 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",