From c753485c167a8a10512e5502be5449c362a695be Mon Sep 17 00:00:00 2001 From: greatim Date: Fri, 2 Dec 2016 09:30:15 +0900 Subject: [PATCH] fix a bug (free the static buffer) fix a bug (free the static buffer) Change-Id: If31caa5c8ff36ae7658bb33daa1df07e20f053be Signed-off-by: greatim --- src/plugin_encrypt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugin_encrypt.c b/src/plugin_encrypt.c index e8a96a3..51df016 100644 --- a/src/plugin_encrypt.c +++ b/src/plugin_encrypt.c @@ -200,6 +200,8 @@ int security_encrypt(const int nSessionID, apacket* pApacket) release_parameters ( &out ); } + // avoid to free + in.array_of_parameter[1].v_chunk.data = NULL; release_parameters ( &in ); return success; } @@ -228,6 +230,8 @@ int security_decrypt(const int nSessionID, apacket* pApacket) release_parameters ( &out ); } + // avoid to free + in.array_of_parameter[1].v_chunk.data = NULL; release_parameters ( &in ); return success; } -- 2.34.1