summaryrefslogtreecommitdiff
path: root/source3/passdb/secrets.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-01-13 21:49:49 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-01-13 21:49:49 +0000
commit1276959d7c32b98f0115b008765772bf33c72eab (patch)
tree6f6d79f86043e8f87634069f3682449858330732 /source3/passdb/secrets.c
parent5368372382671c9b5f7d3e8450ed30af31c0ffc4 (diff)
downloadsamba-1276959d7c32b98f0115b008765772bf33c72eab.tar.gz
samba-1276959d7c32b98f0115b008765772bf33c72eab.tar.bz2
samba-1276959d7c32b98f0115b008765772bf33c72eab.zip
Always initialise this variable - and don't set the 'must change now' if it was
last changed at '0'. We need to actually change this password sometime... Andrew Bartlett (This used to be commit 740bf439d2d1512127c873cf0e57697161d6566b)
Diffstat (limited to 'source3/passdb/secrets.c')
-rw-r--r--source3/passdb/secrets.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index d30b13c3b6..5ba9f1dc1e 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -240,6 +240,7 @@ BOOL secrets_fetch_trust_account_password(const char *domain, uint8 ret_pwd[16],
DEBUG(4,("Using ADS machine password\n"));
E_md4hash(plaintext, ret_pwd);
SAFE_FREE(plaintext);
+ pass_last_set_time = 0;
return True;
}