Blame SOURCES/0003-FAPI-Remove-fauly-free-of-an-unused-field.patch

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