Zero out the entry before inserting it
authorTheodore Tso <tytso@mit.edu>
Fri, 31 Mar 1995 22:06:31 +0000 (22:06 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 31 Mar 1995 22:06:31 +0000 (22:06 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5330 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/create/ChangeLog
src/tests/create/kdb5_mkdums.c

index fa95afb73c3c532759ae1561a1c81dc5de63977b..07f11854479a2a06ea86743c391390806b3064fb 100644 (file)
@@ -1,3 +1,7 @@
+Fri Mar 31 17:05:49 1995  Theodore Y. Ts'o  (tytso@dcl)
+
+       * kdb5_mkdums.c (add_princ): Zero out the entry before inserting it.
+
 Thu Mar  2 12:34:37 1995  Theodore Y. Ts'o  <tytso@dcl>
 
        * Makefile.in (ISODELIB): Remove reference to $(ISODELIB).
index 33a361825e2e54b98e01a2a236c6a528b9f24126..e801643b8fb07bbbd80017102d8a1178a877c4a4 100644 (file)
@@ -248,6 +248,8 @@ add_princ(context, str_newprinc)
 
     sprintf(princ_name, "%s@%s", str_newprinc, cur_realm);
     
+    memset((char *)&newentry, 0, sizeof(newentry));
+
     if (retval = krb5_parse_name(context, princ_name, &newprinc)) {
       com_err(progname, retval, "while parsing '%s'", princ_name);
       return;