zero out the contents before freeing
authorJohn Kohl <jtkohl@mit.edu>
Tue, 8 May 1990 13:13:38 +0000 (13:13 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 8 May 1990 13:13:38 +0000 (13:13 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@774 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/keytab/ktfr_entry.c

index df2ab4c6e77c7058f87e2135f7a696fdffa2f437..f8349c83fb827d81f549352c8fa014711e95a0ab 100644 (file)
@@ -24,6 +24,7 @@ krb5_kt_free_entry (entry)
 krb5_keytab_entry *entry;
 {
     krb5_free_principal(entry->principal);
+    bzero((char *)entry->key.contents, entry->key.length);
     xfree(entry->key.contents);
     return 0;
 }