need to initialize salt in all cases
authorJohn Kohl <jtkohl@mit.edu>
Mon, 18 Feb 1991 16:34:44 +0000 (16:34 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Mon, 18 Feb 1991 16:34:44 +0000 (16:34 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1718 dc483132-0cff-0310-8789-dd5450dbe970

src/admin/edit/kdb5_edit.c

index 8123e754a6b1412a8807884d65fa3abd9244187e..b0b19890d81eeb39fe63454fdccced301e2fb7a0 100644 (file)
@@ -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);