From abb23e5ee786f3c61e24a3ac053ff8a5a4deb1b1 Mon Sep 17 00:00:00 2001 From: Bradley Nicholes Date: Thu, 26 Aug 2004 16:46:55 +0000 Subject: [PATCH] Preserve the return value from the apr_stat() call so that it can be displayed in the error log message. (Done right this time) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104820 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ldap/util_ldap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ldap/util_ldap.c b/modules/ldap/util_ldap.c index 08bcb30c9e..c579bf3a66 100644 --- a/modules/ldap/util_ldap.c +++ b/modules/ldap/util_ldap.c @@ -1060,9 +1060,9 @@ static const char *util_ldap_set_cert_auth(cmd_parms *cmd, void *dummy, const ch if (st->cert_auth_file && ((rv = apr_stat (&finfo, st->cert_auth_file, APR_FINFO_MIN, cmd->pool)) != APR_SUCCESS)) { - ap_log_error(APLOG_MARK, APLOG_ERR, 0, cmd->server, - "LDAP: Could not open SSL trusted certificate authority file - %s error: %d", - st->cert_auth_file == NULL ? file : st->cert_auth_file, rv); + ap_log_error(APLOG_MARK, APLOG_ERR, rv, cmd->server, + "LDAP: Could not open SSL trusted certificate authority file - %s", + st->cert_auth_file == NULL ? file : st->cert_auth_file); return "Invalid file path"; } -- 2.40.0