summaryrefslogtreecommitdiff
path: root/kex.c
diff options
context:
space:
mode:
Diffstat (limited to 'kex.c')
-rw-r--r--kex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kex.c b/kex.c
index 2618e225d..8c2b00179 100644
--- a/kex.c
+++ b/kex.c
@@ -432,9 +432,11 @@ kex_free(struct kex *kex)
432#ifdef WITH_OPENSSL 432#ifdef WITH_OPENSSL
433 if (kex->dh) 433 if (kex->dh)
434 DH_free(kex->dh); 434 DH_free(kex->dh);
435#ifdef OPENSSL_HAS_ECC
435 if (kex->ec_client_key) 436 if (kex->ec_client_key)
436 EC_KEY_free(kex->ec_client_key); 437 EC_KEY_free(kex->ec_client_key);
437#endif 438#endif /* OPENSSL_HAS_ECC */
439#endif /* WITH_OPENSSL */
438 for (mode = 0; mode < MODE_MAX; mode++) { 440 for (mode = 0; mode < MODE_MAX; mode++) {
439 kex_free_newkeys(kex->newkeys[mode]); 441 kex_free_newkeys(kex->newkeys[mode]);
440 kex->newkeys[mode] = NULL; 442 kex->newkeys[mode] = NULL;