summaryrefslogtreecommitdiffstats
path: root/sshkey.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2024-08-15 07:09:45 +0200
committerDamien Miller <djm@mindrot.org>2024-08-15 07:09:45 +0200
commit2c53d2f32b8e3992b61682c909ae5bc5122b6e5d (patch)
tree11ffad36df3e77fa5d1dd48dfdd658f90072a9ea /sshkey.c
parentretire testing aginst older LibreSSL versions (diff)
downloadopenssh-2c53d2f32b8e3992b61682c909ae5bc5122b6e5d.tar.xz
openssh-2c53d2f32b8e3992b61682c909ae5bc5122b6e5d.zip
missed OPENSSL_HAS_ECC case
Diffstat (limited to 'sshkey.c')
-rw-r--r--sshkey.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sshkey.c b/sshkey.c
index be94e8748..cc04f94de 100644
--- a/sshkey.c
+++ b/sshkey.c
@@ -3639,7 +3639,9 @@ sshkey_parse_private_pem_fileblob(struct sshbuf *blob, int type,
BIO_free(bio);
EVP_PKEY_free(pk);
RSA_free(rsa);
+#ifdef OPENSSL_HAS_ECC
EC_KEY_free(ecdsa);
+#endif
sshkey_free(prv);
return r;
}