Fix krb5_dbekd_encrypt_key_data()
authorPaul Park <pjpark@mit.edu>
Thu, 3 Aug 1995 16:05:35 +0000 (16:05 +0000)
committerPaul Park <pjpark@mit.edu>
Thu, 3 Aug 1995 16:05:35 +0000 (16:05 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6392 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/encrypt_key.c

index 272280a00923193d5ab980874b32830b5dda1d19..aecd98c81e748f09227ed59c59435dee02fe2474 100644 (file)
@@ -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++;