From 3b9d50cbb0e6f7ae0e787b5d27c1609a447e5a9c Mon Sep 17 00:00:00 2001 From: Paul Park Date: Thu, 3 Aug 1995 16:05:35 +0000 Subject: [PATCH] Fix krb5_dbekd_encrypt_key_data() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6392 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/encrypt_key.c | 3 +++ 1 file changed, 3 insertions(+) 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++; -- 2.26.2