From: Volker Lendecke Date: Mon, 19 Jan 2009 10:47:29 +0000 (+0100) Subject: Fix the same bug as 8b618d0 fixes, this time in winbindd_passdb.c X-Git-Tag: samba-4.0.0alpha6~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e58a8c169cd075ca900a2a144d7b5387460bbf05;p=thirdparty%2Fsamba.git Fix the same bug as 8b618d0 fixes, this time in winbindd_passdb.c --- diff --git a/source3/winbindd/winbindd_passdb.c b/source3/winbindd/winbindd_passdb.c index d7543732169..d704ca0fd35 100644 --- a/source3/winbindd/winbindd_passdb.c +++ b/source3/winbindd/winbindd_passdb.c @@ -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)) {