diff options
author | Paul Park <pjpark@mit.edu> | 1995-08-03 16:05:35 +0000 |
---|---|---|
committer | Paul Park <pjpark@mit.edu> | 1995-08-03 16:05:35 +0000 |
commit | 3b9d50cbb0e6f7ae0e787b5d27c1609a447e5a9c (patch) | |
tree | 4894c64071a05462fd86e3a61e254a8dcfdd3c89 /src/lib/kdb/encrypt_key.c | |
parent | 9c21d9ec85152c9eb48c7876c0b7f28841d9d6cb (diff) | |
download | krb5-3b9d50cbb0e6f7ae0e787b5d27c1609a447e5a9c.tar.gz krb5-3b9d50cbb0e6f7ae0e787b5d27c1609a447e5a9c.tar.xz krb5-3b9d50cbb0e6f7ae0e787b5d27c1609a447e5a9c.zip |
Fix krb5_dbekd_encrypt_key_data()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6392 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/kdb/encrypt_key.c')
-rw-r--r-- | src/lib/kdb/encrypt_key.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/kdb/encrypt_key.c b/src/lib/kdb/encrypt_key.c index 272280a009..aecd98c81e 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++; |