mirror of
https://github.com/apache/httpd.git
synced 2025-08-20 16:09:55 +00:00
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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user