s4-auth: fixed a vagrind error when creating keytabs
authorAndrew Tridgell <tridge@samba.org>
Fri, 1 Oct 2010 20:07:42 +0000 (13:07 -0700)
committerAndrew Tridgell <tridge@samba.org>
Fri, 1 Oct 2010 20:08:23 +0000 (13:08 -0700)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/auth/kerberos/kerberos_util.c

index 76edf0d05aa8fed28e3e91f87c9eb4ad01f121a2..f83fd786c0707ff15bb6cab038204a84625160e1 100644 (file)
@@ -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) {