From: Paul Park Date: Thu, 3 Aug 1995 16:05:35 +0000 (+0000) Subject: Fix krb5_dbekd_encrypt_key_data() X-Git-Tag: krb5-1.0-beta6~1431 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3b9d50cbb0e6f7ae0e787b5d27c1609a447e5a9c;p=krb5.git Fix krb5_dbekd_encrypt_key_data() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6392 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kdb/encrypt_key.c b/src/lib/kdb/encrypt_key.c index 272280a00..aecd98c81 100644 --- a/src/lib/kdb/encrypt_key.c +++ b/src/lib/kdb/encrypt_key.c @@ -98,6 +98,9 @@ krb5_dbekd_encrypt_key_data(context, eblock, keyblock, keysalt, keyver,key_data) krb5_xfree(key_data->key_data_contents[0]); return ENOMEM; } + memcpy(key_data->key_data_contents[1], + keysalt->data.data, + (size_t) keysalt->data.length); key_data->key_data_length[1] = keysalt->data.length; key_data->key_data_type[1] = keysalt->type; key_data->key_data_ver++;