From: Eric Covener Date: Fri, 30 Jan 2015 21:11:36 +0000 (+0000) Subject: correct copy/paste error, use cmd->cmd->name X-Git-Tag: 2.5.0-alpha~3495 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2d3d469ca6c09b4f0fabb3ea9e7b99cd8dca441;p=apache 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 6092e1e7ce..587e3751fb 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)