diff options
Diffstat (limited to 'kex.c')
-rw-r--r-- | kex.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |