Even when I can't manage to do QA, at least the build farm will catch some of
authorAndrew Bartlett <abartlet@samba.org>
Sun, 5 Jan 2003 04:59:42 +0000 (04:59 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 5 Jan 2003 04:59:42 +0000 (04:59 +0000)
the silly stuff.

(fixes password changes from RAP based clients like smbpasswd)

Andrew Bartlett
(This used to be commit 066e4f9a4bdd432b3b2b7830c0ac1421f6086df4)

source3/smbd/chgpasswd.c

index 80b412af49d15a00c067a5da1ab202843d8bed06..a9729da799e26ce499830a9229453ea6bfb77425 100644 (file)
@@ -748,7 +748,7 @@ NTSTATUS pass_oem_change(char *user,
                = check_oem_password(user, lmdata, lmhash, ntdata, nthash,
                                     &sampass, new_passwd, sizeof(new_passwd));
 
-       if (NT_STATUS_IS_OK(nt_status))
+       if (!NT_STATUS_IS_OK(nt_status))
                return nt_status;
 
        /*