r12821: Fix typos.
authorAndrew Bartlett <abartlet@samba.org>
Tue, 10 Jan 2006 09:41:59 +0000 (09:41 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:50:01 +0000 (13:50 -0500)
Andrew Bartlett
(This used to be commit f4386f7af17add82e88373adb1d585261d13355c)

source4/auth/auth_unix.c

index f673beb43dff640042685a465f1f85ea2cdd2006..6cea18522346ad41d4cbf785d9a67b735789c3ba 100644 (file)
@@ -702,7 +702,7 @@ static NTSTATUS check_unix_password(TALLOC_CTX *ctx, const struct auth_usersuppl
                }
                if (password == NULL) {
                        DEBUG(3, ("Allowing access to %s with null password\n", username));
-                       *ret_passwd = pwd;
+                       *ret_passwd = pws;
                        return NT_STATUS_OK;
                }
        }
@@ -710,7 +710,7 @@ static NTSTATUS check_unix_password(TALLOC_CTX *ctx, const struct auth_usersuppl
        /* try it as it came to us */
        nt_status = password_check(username, password, crypted, salt);
         if (NT_STATUS_IS_OK(nt_status)) {
-               *ret_passwd = pwd;
+               *ret_passwd = pws;
                return nt_status;
        }
        else if (!NT_STATUS_EQUAL(nt_status, NT_STATUS_WRONG_PASSWORD)) {
@@ -754,7 +754,7 @@ static NTSTATUS check_unix_password(TALLOC_CTX *ctx, const struct auth_usersuppl
 
 #if 0
         if (NT_STATUS_IS_OK(nt_status = string_combinations(pwcopy, password_check, level))) {
-               *ret_passwd = pwd;
+               *ret_passwd = pws;
                return nt_status;
        }
 #endif