diff --git a/tss-esapi/src/context/general_esys_tr.rs b/tss-esapi/src/context/general_esys_tr.rs index f87b9d45..ad1835b1 100644 --- a/tss-esapi/src/context/general_esys_tr.rs +++ b/tss-esapi/src/context/general_esys_tr.rs @@ -405,7 +405,7 @@ impl Context { )?; unsafe { let data = std::slice::from_raw_parts(&buffer, len.try_into().unwrap()); - result.extend_from_slice(data); + result.extend_from_slice(*data); // free buffer Context::ffi_data_to_owned(buffer); };