]> granicus.if.org Git - apache/commitdiff
Transposed return values between conditions, oops.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 20 Sep 2000 05:01:55 +0000 (05:01 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 20 Sep 2000 05:01:55 +0000 (05:01 +0000)
PR:
Obtained from:
Submitted by:
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86258 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_auth_dbm.c

index 49dabab67d1e7a5749941361356a9992c30f6bab..eadddd84b11d78beb1137708901916fdf65c1a4b 100644 (file)
@@ -171,11 +171,11 @@ static char *get_dbm_pw(request_rec *r, char *user, char *auth_dbmpwfile)
 
 #ifdef WIN32 /* XXX: Same bad symbol here - need feature macro */
     if (!(retval = dbm_open(&f, auth_dbmpwfile, O_RDONLY, 0664, r->pool))) {
-        ap_log_rerror(APLOG_MARK, APLOG_ERR, errno, r,
+        ap_log_rerror(APLOG_MARK, APLOG_ERR, retval, r,
                    "could not open sdbm auth file: %s", auth_dbmpwfile);
 #else
     if (!(f = dbm_open(auth_dbmpwfile, O_RDONLY, 0664))) {
-        ap_log_rerror(APLOG_MARK, APLOG_ERR, retval, r,
+        ap_log_rerror(APLOG_MARK, APLOG_ERR, errno, r,
                    "could not open dbm auth file: %s", auth_dbmpwfile);
 #endif
        return NULL;