Fix directive name in

(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
This commit is contained in:
Christophe Jaillet
2017-04-06 20:38:01 +00:00
parent e4611af52b
commit 8f446f8d0c

View 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);
}