summaryrefslogtreecommitdiff
path: root/kex.c
diff options
context:
space:
mode:
authorDamien Miller <djm@google.com>2015-03-11 10:02:39 +1100
committerDamien Miller <djm@google.com>2015-03-11 10:02:39 +1100
commit4df590cf8dc799e8986268d62019b487a8ed63ad (patch)
treebd451328d0b41c1155a9721456ad01497c7c7bdf /kex.c
parent307bb40277ca2c32e97e61d70d1ed74b571fd6ba (diff)
make unit tests work for !OPENSSH_HAS_ECC
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;