diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2017-04-06 20:38:01 +0000 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2017-04-06 20:38:01 +0000 |
commit | 8f446f8d0cf00ac126aa98d03d1b2b79f21c787f (patch) | |
tree | 40acd30f5a4257e98450a37cdbd990d63ad3c04a | |
parent | e4611af52b8aed2dc5af6b7dccb9e6e7551bc077 (diff) | |
download | httpd-8f446f8d0cf00ac126aa98d03d1b2b79f21c787f.tar.gz |
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
-rw-r--r-- | modules/metadata/mod_remoteip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/metadata/mod_remoteip.c b/modules/metadata/mod_remoteip.c index 6a9f3ab60b..8cd8b40513 100644 --- a/modules/metadata/mod_remoteip.c +++ b/modules/metadata/mod_remoteip.c @@ -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); } |