From c2d3d469ca6c09b4f0fabb3ea9e7b99cd8dca441 Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Fri, 30 Jan 2015 21:11:36 +0000 Subject: [PATCH] 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 --- server/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.40.0