summaryrefslogtreecommitdiff
path: root/source4/auth/kerberos
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-10-01 13:07:42 -0700
committerAndrew Tridgell <tridge@samba.org>2010-10-01 13:08:23 -0700
commit0adc1645e23fedf52b10ed545eb9935df9ad7b6f (patch)
tree34d7d89ed51fab1b051878b5c937084b12cf9b55 /source4/auth/kerberos
parent0111e80ea9f7a4d833771f349e5ce05025f7276c (diff)
downloadsamba-0adc1645e23fedf52b10ed545eb9935df9ad7b6f.tar.gz
samba-0adc1645e23fedf52b10ed545eb9935df9ad7b6f.tar.bz2
samba-0adc1645e23fedf52b10ed545eb9935df9ad7b6f.zip
s4-auth: fixed a vagrind error when creating keytabs
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/auth/kerberos')
-rw-r--r--source4/auth/kerberos/kerberos_util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/auth/kerberos/kerberos_util.c b/source4/auth/kerberos/kerberos_util.c
index 76edf0d05a..f83fd786c0 100644
--- a/source4/auth/kerberos/kerberos_util.c
+++ b/source4/auth/kerberos/kerberos_util.c
@@ -530,6 +530,9 @@ static krb5_error_code keytab_add_keys(TALLOC_CTX *parent_ctx,
for (i=0; enctypes[i]; i++) {
krb5_keytab_entry entry;
+
+ ZERO_STRUCT(entry);
+
ret = create_kerberos_key_from_string(smb_krb5_context->krb5_context,
salt_princ, &password, &entry.keyblock, enctypes[i]);
if (ret != 0) {