]> granicus.if.org Git - apache/commitdiff
correct copy/paste error, use cmd->cmd->name
authorEric Covener <covener@apache.org>
Fri, 30 Jan 2015 21:11:36 +0000 (21:11 +0000)
committerEric Covener <covener@apache.org>
Fri, 30 Jan 2015 21:11:36 +0000 (21:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1656122 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index 6092e1e7ce569f29048feee64832445533acc390..587e3751fbd020dca13ef2399d4db989c3a8f1a6 100644 (file)
@@ -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, "<VirtualHost")) { 
-        return apr_pstrcat(cmd->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, "<VirtualHost")) { 
-        return apr_pstrcat(cmd->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)