From: Theodore Tso Date: Thu, 24 Sep 1992 23:04:31 +0000 (+0000) Subject: Changed to clear the kdb5_db_entry before assigning it. (To keep X-Git-Tag: krb5-1.0-beta2~81 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6702c1f96257f320069ad124759020668fe0fea7;p=krb5.git 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 --- 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;