summaryrefslogtreecommitdiffstats
path: root/modules/aaa/mod_authz_host.c
diff options
context:
space:
mode:
authorChristophe Jaillet <jailletc36@apache.org>2013-04-02 23:14:10 +0200
committerChristophe Jaillet <jailletc36@apache.org>2013-04-02 23:14:10 +0200
commit162eccade2b36f0e02c5892ca67e5541f28b3d9f (patch)
tree7e69c0779743e0553419e7264b05df8485b9e3d4 /modules/aaa/mod_authz_host.c
parentUse apr_file_printf(... "%pm"...) instead of explicit call to apr_strerror (diff)
downloadapache2-162eccade2b36f0e02c5892ca67e5541f28b3d9f.tar.xz
apache2-162eccade2b36f0e02c5892ca67e5541f28b3d9f.zip
Use apr_psprintf(... "%pm"...) instead of explicit call to apr_strerror
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1463754 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/aaa/mod_authz_host.c')
-rw-r--r--modules/aaa/mod_authz_host.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/aaa/mod_authz_host.c b/modules/aaa/mod_authz_host.c
index 9087676173..f4d5c41cb8 100644
--- a/modules/aaa/mod_authz_host.c
+++ b/modules/aaa/mod_authz_host.c
@@ -131,10 +131,8 @@ static const char *ip_parse_config(cmd_parms *cmd,
return apr_psprintf(p, "ip address '%s' appears to be invalid", w);
}
else if (rv != APR_SUCCESS) {
- char msgbuf[120];
- apr_strerror(rv, msgbuf, sizeof msgbuf);
- return apr_psprintf(p, "ip address '%s' appears to be invalid: %s",
- w, msgbuf);
+ return apr_psprintf(p, "ip address '%s' appears to be invalid: %pm",
+ w, &rv);
}
if (parsed_subnets)