summaryrefslogtreecommitdiffstats
path: root/source/passdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-12-05 10:52:13 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-12-05 10:52:13 +0000
commitc76c1f6904510d6ecca3453f91433420f22b7bd6 (patch)
tree0c8a13cc0f65ec2234b587ceef7f0bb6d5e5794f /source/passdb
parentd15ea4fa8e23469f104405c197206e2779461323 (diff)
downloadsamba-c76c1f6904510d6ecca3453f91433420f22b7bd6.tar.gz
samba-c76c1f6904510d6ecca3453f91433420f22b7bd6.tar.xz
samba-c76c1f6904510d6ecca3453f91433420f22b7bd6.zip
Add a couple of extra debugs for the secrets.tdb stuff
Diffstat (limited to 'source/passdb')
-rw-r--r--source/passdb/secrets.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/passdb/secrets.c b/source/passdb/secrets.c
index c855c0adc11..198f557bd62 100644
--- a/source/passdb/secrets.c
+++ b/source/passdb/secrets.c
@@ -155,9 +155,15 @@ BOOL secrets_fetch_trust_account_password(char *domain, uint8 ret_pwd[16],
return True;
}
- if (!(pass = secrets_fetch(trust_keystr(domain), &size)) ||
- size != sizeof(*pass))
+ if (!(pass = secrets_fetch(trust_keystr(domain), &size))) {
+ DEBUG(5, ("secrets_fetch failed!\n"));
return False;
+ }
+
+ if (size != sizeof(*pass)) {
+ DEBUG(0, ("secrets were of incorrect size!\n"));
+ return False;
+ }
if (pass_last_set_time) *pass_last_set_time = pass->mod_time;
memcpy(ret_pwd, pass->hash, 16);