r14514: Fixing last commit. Thanks Volker.
authorGünther Deschner <gd@samba.org>
Fri, 17 Mar 2006 14:31:05 +0000 (14:31 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:15:35 +0000 (11:15 -0500)
Guenther
(This used to be commit 345d2ab5d399a99f271148cf308271cb7fc2c0ca)

source3/nsswitch/winbindd_pam.c

index 8b400fc1f1bede492940a9b96a8e6f7a9d72af93..a010d51cafb48cdffade781d0788e4cb2cfbf197 100644 (file)
@@ -1657,7 +1657,7 @@ void winbindd_pam_chauthtok(struct winbindd_cli_state *state)
                got_info = True;
 
        /* only fallback when the chgpasswd3 call is not supported */
-       } else if ((result.v == 0x1c010002) || 
+       } else if ((NT_STATUS_EQUAL(result, NT_STATUS(0x1c010002))) ||
                   (NT_STATUS_EQUAL(result, NT_STATUS_NOT_SUPPORTED)) ||
                   (NT_STATUS_EQUAL(result, NT_STATUS_NOT_IMPLEMENTED))) {