summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-06-22 21:58:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:00 -0500
commit20551552913e6794556ed86b2e912b773a74bd45 (patch)
treee71624fda34a9075f06959e6fa3bbf21f2236935 /source3/libads
parent94edc72c90adf69a6fa75c6a6939df218dfd5c5c (diff)
downloadsamba-20551552913e6794556ed86b2e912b773a74bd45.tar.gz
samba-20551552913e6794556ed86b2e912b773a74bd45.tar.bz2
samba-20551552913e6794556ed86b2e912b773a74bd45.zip
r1221: Added the last of the system keytab patch from "Dan Perry" <dperry@pppl.gov>,
fixed valgrind detected mem corruption in libads/kerberos_keytab.c. Jeremy. (This used to be commit 286f4c809cb1532b3f8ae7ddf92349c68cc8ce31)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/kerberos_keytab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c
index da504db363..410aad649c 100644
--- a/source3/libads/kerberos_keytab.c
+++ b/source3/libads/kerberos_keytab.c
@@ -225,7 +225,7 @@ int ads_keytab_add_entry(ADS_STRUCT *ads, const char *srvPrinc)
DEBUG(3,("ads_keytab_add_entry: adding keytab entry for (%s) with encryption type (%d) and version (%d)\n",
princ_s, enctypes[i], kt_entry.vno));
ret = krb5_kt_add_entry(context, keytab, &kt_entry);
- krb5_free_keyblock(context, keyp);
+ krb5_free_keyblock_contents(context, keyp);
ZERO_STRUCT(kt_entry);
if (ret) {
DEBUG(1,("ads_keytab_add_entry: adding entry to keytab failed (%s)\n", error_message(ret)));