Fix so that the kdb5_entry structure is clered before we start filling
authorTheodore Tso <tytso@mit.edu>
Thu, 24 Sep 1992 23:09:45 +0000 (23:09 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 24 Sep 1992 23:09:45 +0000 (23:09 +0000)
it in.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2386 dc483132-0cff-0310-8789-dd5450dbe970

src/admin/create/kdb5_create.c

index 168a0030e1983fe710308bbaa150eee2cb69caf6..9d1069025bd6f2b6f0ef26fea3ac295aa1ef6076 100644 (file)
@@ -299,6 +299,7 @@ struct realm_info *pblock;
     krb5_keyblock *rkey;
     int nentries = 1;
 
+    memset((char *) &entry, 0, sizeof(entry));
     entry.principal = princ;
     entry.kvno = 0;
     entry.max_life = pblock->max_life;