From db0d2f84354b7b189ce07c2c3c1675a42506876d Mon Sep 17 00:00:00 2001 From: John Kohl Date: Mon, 18 Feb 1991 16:34:44 +0000 Subject: [PATCH] need to initialize salt in all cases git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1718 dc483132-0cff-0310-8789-dd5450dbe970 --- src/admin/edit/kdb5_edit.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.26.2