From: John Kohl Date: Mon, 18 Feb 1991 16:34:44 +0000 (+0000) Subject: need to initialize salt in all cases X-Git-Tag: krb5-1.0-alpha4~254 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=db0d2f84354b7b189ce07c2c3c1675a42506876d;p=krb5.git need to initialize salt in all cases git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1718 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/admin/edit/kdb5_edit.c b/src/admin/edit/kdb5_edit.c index 8123e754a..b0b19890d 100644 --- a/src/admin/edit/kdb5_edit.c +++ b/src/admin/edit/kdb5_edit.c @@ -394,6 +394,10 @@ OLDDECLARG(struct saltblock *, salt) newentry.salt_type = salt->salttype; newentry.salt_length = salt->saltdata.length; newentry.salt = (krb5_octet *) salt->saltdata.data; + } else { + newentry.salt_type = KRB5_KDB_SALTTYPE_NORMAL; + newentry.salt_length = 0; + newentry.salt = 0; } retval = krb5_db_put_principal(&newentry, &one);