diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2012-12-23 23:09:50 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2012-12-23 23:09:50 +0100 |
commit | 63c3f0e7368c7286a960c65422513850ce192124 (patch) | |
tree | 2267e176dac25d4c9e14512282a4723d94a063d6 /src/wrapper.c | |
parent | e934ab0816e871253cd3d0538638f0b7cf98c375 (diff) | |
download | libssh-63c3f0e7368c7286a960c65422513850ce192124.tar.gz libssh-63c3f0e7368c7286a960c65422513850ce192124.tar.xz libssh-63c3f0e7368c7286a960c65422513850ce192124.zip |
Implement key re-exchange
Diffstat (limited to 'src/wrapper.c')
-rw-r--r-- | src/wrapper.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wrapper.c b/src/wrapper.c index e27579d..b8a489d 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)) { |