projects
/
apache
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae8de8d
)
Use apr_psprintf(... "%pm"...) instead of explicit call to apr_strerror
author
Christophe Jaillet
<jailletc36@apache.org>
Tue, 2 Apr 2013 21:14:10 +0000
(21:14 +0000)
committer
Christophe Jaillet
<jailletc36@apache.org>
Tue, 2 Apr 2013 21:14:10 +0000
(21:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1463754
13f79535
-47bb-0310-9956-
ffa450edef68
modules/aaa/mod_authz_host.c
patch
|
blob
|
history
diff --git
a/modules/aaa/mod_authz_host.c
b/modules/aaa/mod_authz_host.c
index 908767617315afce85eabc771380df5d3afb8a4e..f4d5c41cb84ecd7ee5255021267e71a6050799e3 100644
(file)
--- 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)