]> granicus.if.org Git - apache/commitdiff
Fix directive name in
authorChristophe Jaillet <jailletc36@apache.org>
Thu, 6 Apr 2017 20:38:01 +0000 (20:38 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Thu, 6 Apr 2017 20:38:01 +0000 (20:38 +0000)
(s/RemoteIPProxyProtocolDisableNetworks/RemoteIPProxyProtocolExceptions/)

Use cmd->cmd->name instead to be future proof.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790457 13f79535-47bb-0310-9956-ffa450edef68

modules/metadata/mod_remoteip.c

index 6a9f3ab60b67feb7eee18a62fe1d9b36a348f2c3..8cd8b40513a165b67c38762292d249bc5d442a76 100644 (file)
@@ -429,7 +429,7 @@ static const char *remoteip_disable_networks(cmd_parms *cmd, void *d,
                                 &remoteip_module);
 
     if (argc == 0)
-        return "RemoteIPProxyProtocolDisableNetworks requires an argument";
+        return apr_pstrcat(p, cmd->cmd->name, " requires an argument", NULL);
 
 
     for (i=0; i<argc; i++) {
@@ -443,7 +443,7 @@ static const char *remoteip_disable_networks(cmd_parms *cmd, void *d,
 
         rv = apr_ipsubnet_create(ip, addr, mask, p);
 
-        if(APR_STATUS_IS_EINVAL(rv)) {
+        if (APR_STATUS_IS_EINVAL(rv)) {
             /* looked nothing like an IP address */
             return apr_psprintf(p, "ip address '%s' appears to be invalid", addr);
         }