summaryrefslogtreecommitdiffstats
path: root/src/wrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrapper.c')
-rw-r--r--src/wrapper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wrapper.c b/src/wrapper.c
index 5a6ed08..c4ba7d5 100644
--- a/src/wrapper.c
+++ b/src/wrapper.c
@@ -111,8 +111,10 @@ void crypto_free(struct ssh_crypto_struct *crypto){
bignum_free(crypto->x);
bignum_free(crypto->y);
bignum_free(crypto->k);
+#ifdef HAVE_ECDH
SAFE_FREE(crypto->ecdh_client_pubkey);
SAFE_FREE(crypto->ecdh_server_pubkey);
+#endif
#ifdef WITH_LIBZ
if (crypto->compress_out_ctx &&