summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-01-27 19:24:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:06:16 -0500
commit139acd247060841b44079f1703af0e71109ba74e (patch)
tree5d06bdd8068d74b1803d03a7b9cf33fe8ddb2279
parent661be1d332a7f38de3f8b8dd98c7873ac687556f (diff)
downloadsamba-139acd247060841b44079f1703af0e71109ba74e.tar.gz
samba-139acd247060841b44079f1703af0e71109ba74e.tar.bz2
samba-139acd247060841b44079f1703af0e71109ba74e.zip
r13190: Fix #3458 from Andriy Gapon <avg@icyb.net.ua>. Don't
access free'd memory. Jerry please pick up for 3.0.21b ! Jeremy. (This used to be commit c0ba64297a00d75cd537693425c6b544e70578c1)
-rw-r--r--source3/passdb/secrets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index c173a5ea86..14896a3340 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -299,7 +299,6 @@ BOOL secrets_fetch_trust_account_password(const char *domain, uint8 ret_pwd[16],
*pass_last_set_time = pass->mod_time;
}
memcpy(ret_pwd, pass->hash, 16);
- SAFE_FREE(pass);
if (channel) {
*channel = get_default_sec_channel();
@@ -313,6 +312,7 @@ BOOL secrets_fetch_trust_account_password(const char *domain, uint8 ret_pwd[16],
}
}
+ SAFE_FREE(pass);
return True;
}