dsdb/password_hash: rename variable 'stat' to 'vstat'
authorStefan Metzmacher <metze@samba.org>
Mon, 4 Feb 2013 08:47:31 +0000 (09:47 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 5 Feb 2013 09:46:48 +0000 (10:46 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 54cc3b1f42eba19170e611b0ee0ea464ea4ac604)

source4/dsdb/samdb/ldb_modules/password_hash.c

index 6b8cd9cd15776739eb4fbba9a5e958d55d53a1d5..e9c2bca2dc9a7f0ce43b152fc690d11e406b0b2c 100644 (file)
@@ -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;