From: Theodore Tso Date: Fri, 31 Mar 1995 22:06:31 +0000 (+0000) Subject: Zero out the entry before inserting it X-Git-Tag: krb5-1.0-beta5~396 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e59cc9658f1bf5f333efc1bde2285ff71d706dd3;p=krb5.git Zero out the entry before inserting it git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5330 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/tests/create/ChangeLog b/src/tests/create/ChangeLog index fa95afb73..07f118544 100644 --- a/src/tests/create/ChangeLog +++ b/src/tests/create/ChangeLog @@ -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 * Makefile.in (ISODELIB): Remove reference to $(ISODELIB). diff --git a/src/tests/create/kdb5_mkdums.c b/src/tests/create/kdb5_mkdums.c index 33a361825..e801643b8 100644 --- a/src/tests/create/kdb5_mkdums.c +++ b/src/tests/create/kdb5_mkdums.c @@ -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;