Fix "used uninitialized" errors.
authorJeremy Allison <jra@samba.org>
Sat, 23 Feb 2008 00:19:59 +0000 (16:19 -0800)
committerJeremy Allison <jra@samba.org>
Sat, 23 Feb 2008 00:19:59 +0000 (16:19 -0800)
Jeremy.
(This used to be commit 06d15d8a9f94a50337ebf6f651a004bb8b4821f3)

source3/utils/net_rpc_samsync.c

index 569bbea8579a6f14bdb9595d875e5f066924e525..62876106381ee49b778cda7a16e936d8d0d34d84 100644 (file)
@@ -979,7 +979,11 @@ static NTSTATUS fetch_alias_mem(uint32_t rid,
 static NTSTATUS fetch_domain_info(uint32_t rid,
                                  struct netr_DELTA_DOMAIN *r)
 {
-       time_t u_max_age, u_min_age, u_logout, u_lockoutreset, u_lockouttime;
+       time_t u_max_age, u_min_age, u_logout;
+#if 0
+       /* FIXME: gd */
+       time_t u_lockoutreset, u_lockouttime;
+#endif
        NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
        const char *domname;
 
@@ -1023,7 +1027,6 @@ static NTSTATUS fetch_domain_info(uint32_t rid,
 /* FIXME: gd */
        if (!pdb_set_account_policy(AP_BAD_ATTEMPT_LOCKOUT, delta->account_lockout.bad_attempt_lockout))
                return nt_status;
-#endif
 
        if (!pdb_set_account_policy(AP_RESET_COUNT_TIME, (uint32)u_lockoutreset/60))
                return nt_status;
@@ -1033,6 +1036,7 @@ static NTSTATUS fetch_domain_info(uint32_t rid,
 
        if (!pdb_set_account_policy(AP_LOCK_ACCOUNT_DURATION, (uint32)u_lockouttime))
                return nt_status;
+#endif
 
        if (!pdb_set_account_policy(AP_USER_MUST_LOGON_TO_CHG_PASS,
                                    r->logon_to_chgpass))