f76eab2dc2
Resolves: rhbz#2041919 Signed-off-by: Štěpán Horáček <shoracek@redhat.com>
41 lines
1.6 KiB
Diff
41 lines
1.6 KiB
Diff
From 29f7b2855a9d1378bb8a757564e1f0367a84cb70 Mon Sep 17 00:00:00 2001
|
|
From: Juergen Repp <juergen.repp@sit.fraunhofer.de>
|
|
Date: Tue, 3 Aug 2021 16:24:41 +0200
|
|
Subject: [PATCH 03/23] FAPI: Remove fauly free of an unused field.
|
|
|
|
The field out_data in IFAPI_Data_EncryptDecrypt was not used but freed in Fapi_Encrypt.
|
|
|
|
Signed-off-by: Juergen Repp <juergen.repp@sit.fraunhofer.de>
|
|
---
|
|
src/tss2-fapi/api/Fapi_Encrypt.c | 1 -
|
|
src/tss2-fapi/fapi_int.h | 1 -
|
|
2 files changed, 2 deletions(-)
|
|
|
|
diff --git a/src/tss2-fapi/api/Fapi_Encrypt.c b/src/tss2-fapi/api/Fapi_Encrypt.c
|
|
index 2e892351..af8e2c58 100644
|
|
--- a/src/tss2-fapi/api/Fapi_Encrypt.c
|
|
+++ b/src/tss2-fapi/api/Fapi_Encrypt.c
|
|
@@ -405,7 +405,6 @@ error_cleanup:
|
|
SAFE_FREE(tpmCipherText);
|
|
SAFE_FREE(command->keyPath);
|
|
SAFE_FREE(command->in_data);
|
|
- SAFE_FREE(command->out_data);
|
|
ifapi_session_clean(context);
|
|
LOG_TRACE("finished");
|
|
return r;
|
|
diff --git a/src/tss2-fapi/fapi_int.h b/src/tss2-fapi/fapi_int.h
|
|
index 90707da1..13c0333e 100644
|
|
--- a/src/tss2-fapi/fapi_int.h
|
|
+++ b/src/tss2-fapi/fapi_int.h
|
|
@@ -386,7 +386,6 @@ typedef struct {
|
|
uint8_t const *in_data;
|
|
size_t in_dataSize;
|
|
IFAPI_OBJECT *key_object; /**< The IPAPI object for the encryption key */
|
|
- uint8_t *out_data; /**< The output of symmetric encrypt/decryption */
|
|
ESYS_TR key_handle; /**< The ESYS handle of the encryption key */
|
|
size_t numBytes; /**< The number of bytes of a ESYS request */
|
|
size_t decrypt; /**< Switch whether to encrypt or decrypt */
|
|
--
|
|
2.34.3
|
|
|