From 6702c1f96257f320069ad124759020668fe0fea7 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 24 Sep 1992 23:04:31 +0000 Subject: [PATCH] Changed to clear the kdb5_db_entry before assigning it. (To keep the alt_key structure clear since we're not filling it in yet.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2381 dc483132-0cff-0310-8789-dd5450dbe970 --- src/admin/convert/kdb5_convert.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/admin/convert/kdb5_convert.c b/src/admin/convert/kdb5_convert.c index 21bc50e79..2d09f0855 100644 --- a/src/admin/convert/kdb5_convert.c +++ b/src/admin/convert/kdb5_convert.c @@ -499,6 +499,7 @@ Principal *princ; printf("\nignoring '%s.%s' ...", princ->name, princ->instance); return 0; } + memset((char *) &entry, 0, sizeof(entry)); if (retval = krb5_425_conv_principal(princ->name, princ->instance, realm, &entry.principal)) return retval; @@ -579,6 +580,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; -- 2.26.2