30 lines
939 B
Diff
30 lines
939 B
Diff
From 0317141799e03798d42a42cf84d7680159d63df3 Mon Sep 17 00:00:00 2001
|
|
From: Krzysztof Kotlenga <k.kotlenga@sims.pl>
|
|
Date: Wed, 5 Nov 2014 18:02:01 -0500
|
|
Subject: [PATCH 10/28] Fixed possible double free when freeing context memory
|
|
|
|
Use the right free call or else it will crash when freeing context
|
|
memory and an owner evict key has been loaded.
|
|
|
|
From https://sourceforge.net/p/trousers/trousers/ci/0317141799e03798d42a42cf84d7680159d63df3
|
|
---
|
|
src/tspi/tspi_ps.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/tspi/tspi_ps.c b/src/tspi/tspi_ps.c
|
|
index bde3e53..237fadf 100644
|
|
--- a/src/tspi/tspi_ps.c
|
|
+++ b/src/tspi/tspi_ps.c
|
|
@@ -107,7 +107,7 @@ Tspi_Context_LoadKeyByUUID(TSS_HCONTEXT tspContext, /* in */
|
|
|
|
result = obj_rsakey_set_pubkey(*phKey, FALSE, rgbPubKey);
|
|
|
|
- free(rgbPubKey);
|
|
+ free_tspi(tspContext,rgbPubKey);
|
|
if (result != TSS_SUCCESS)
|
|
return result;
|
|
} else {
|
|
--
|
|
1.8.3.1
|
|
|