summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-02-22 16:19:59 -0800
committerJeremy Allison <jra@samba.org>2008-02-22 16:19:59 -0800
commit29d70de83c8406b9cd8b5ac9b32e49f48208ee90 (patch)
tree92f480d981bd44c5b3a972beafc9ef90ac98f3d1 /source3
parent6cdd527fed86476f9fc86b11cd5d2e7f1067d2e7 (diff)
downloadsamba-29d70de83c8406b9cd8b5ac9b32e49f48208ee90.tar.gz
samba-29d70de83c8406b9cd8b5ac9b32e49f48208ee90.tar.bz2
samba-29d70de83c8406b9cd8b5ac9b32e49f48208ee90.zip
Fix "used uninitialized" errors.
Jeremy. (This used to be commit 06d15d8a9f94a50337ebf6f651a004bb8b4821f3)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_rpc_samsync.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c
index 569bbea857..6287610638 100644
--- a/source3/utils/net_rpc_samsync.c
+++ b/source3/utils/net_rpc_samsync.c
@@ -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))