diff options
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/password_hash.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/password_hash.c b/source4/dsdb/samdb/ldb_modules/password_hash.c index 6b8cd9cd15..e9c2bca2dc 100644 --- a/source4/dsdb/samdb/ldb_modules/password_hash.c +++ b/source4/dsdb/samdb/ldb_modules/password_hash.c @@ -1876,7 +1876,6 @@ static int check_password_restrictions(struct setup_password_fields_io *io) { struct ldb_context *ldb; int ret; - enum samr_ValidationStatus stat; ldb = ldb_module_get_ctx(io->ac->module); @@ -1973,10 +1972,11 @@ static int check_password_restrictions(struct setup_password_fields_io *io) * It is also in use by "dcesrv_samr_ValidatePassword". */ if (io->n.cleartext_utf8 != NULL) { - stat = samdb_check_password(io->n.cleartext_utf8, - io->ac->status->domain_data.pwdProperties, - io->ac->status->domain_data.minPwdLength); - switch (stat) { + enum samr_ValidationStatus vstat; + vstat = samdb_check_password(io->n.cleartext_utf8, + io->ac->status->domain_data.pwdProperties, + io->ac->status->domain_data.minPwdLength); + switch (vstat) { case SAMR_VALIDATION_STATUS_SUCCESS: /* perfect -> proceed! */ break; |