aboutsummaryrefslogtreecommitdiff
path: root/src/wrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrapper.c')
-rw-r--r--src/wrapper.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wrapper.c b/src/wrapper.c
index e27579db..b8a489d4 100644
--- a/src/wrapper.c
+++ b/src/wrapper.c
@@ -121,7 +121,10 @@ void crypto_free(struct ssh_crypto_struct *crypto){
memset(crypto->session_id, '\0', crypto->digest_len);
SAFE_FREE(crypto->session_id);
}
-
+ if(crypto->secret_hash != NULL){
+ memset(crypto->secret_hash, '\0', crypto->digest_len);
+ SAFE_FREE(crypto->secret_hash);
+ }
#ifdef WITH_ZLIB
if (crypto->compress_out_ctx &&
(deflateEnd(crypto->compress_out_ctx) != 0)) {