From: Eric Covener Date: Fri, 30 Jan 2015 21:11:36 +0000 (+0000) Subject: correct copy/paste error, use cmd->cmd->name X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e071cc962b7f2af829ec91c3ee64f94b7fb6d13;p=thirdparty%2Fapache%2Fhttpd.git correct copy/paste error, use cmd->cmd->name git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1656122 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core.c b/server/core.c index 6092e1e7ce5..587e3751fbd 100644 --- a/server/core.c +++ b/server/core.c @@ -1333,7 +1333,7 @@ static const char *set_define(cmd_parms *cmd, void *dummy, const char *name, const char *value) { if (cmd->parent && strcasecmp(cmd->parent->directive, "pool, "Define is not valid in ", cmd->parent->directive, " context", NULL); + return apr_pstrcat(cmd->pool, cmd->cmd->name, " is not valid in ", cmd->parent->directive, " context", NULL); } if (ap_strchr_c(name, ':') != NULL) @@ -1360,7 +1360,7 @@ static const char *unset_define(cmd_parms *cmd, void *dummy, int i; char **defines; if (cmd->parent && strcasecmp(cmd->parent->directive, "pool, "Define is not valid in ", cmd->parent->directive, " context", NULL); + return apr_pstrcat(cmd->pool, cmd->cmd->name, " is not valid in ", cmd->parent->directive, " context", NULL); } if (ap_strchr_c(name, ':') != NULL)