Fix the same bug as 8b618d0 fixes, this time in winbindd_passdb.c
authorVolker Lendecke <vl@samba.org>
Mon, 19 Jan 2009 10:47:29 +0000 (11:47 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 19 Jan 2009 10:49:18 +0000 (11:49 +0100)
source3/winbindd/winbindd_passdb.c

index d75437321694bacb8217d79d6fa307df4b06beb0..d704ca0fd35414235019e089580fdfa906875d5c 100644 (file)
@@ -333,14 +333,16 @@ static NTSTATUS password_policy(struct winbindd_domain *domain,
        }
 
        if (!pdb_get_account_policy(AP_MIN_PASSWORD_LEN,
-                                   (uint32_t *)&p->min_password_length)) {
+                                   &account_policy_temp)) {
                return NT_STATUS_ACCESS_DENIED;
        }
+       p->min_password_length = account_policy_temp;
 
        if (!pdb_get_account_policy(AP_PASSWORD_HISTORY,
-                                   (uint32_t *)&p->password_history_length)) {
+                                   &account_policy_temp)) {
                return NT_STATUS_ACCESS_DENIED;
        }
+       p->password_history_length = account_policy_temp;
 
        if (!pdb_get_account_policy(AP_USER_MUST_LOGON_TO_CHG_PASS,
                                    &p->password_properties)) {