[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/2] pki_gcrypt: Fix freeing of ECDSA signatures.


* src/pki.c (ssh_signature_free): Fix test for ECC using gcrypt.

Signed-off-by: Justus Winter <justus@xxxxxxxxxxx>
---
 src/pki.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pki.c b/src/pki.c
index 36e3c0c..a3317cd 100644
--- a/src/pki.c
+++ b/src/pki.c
@@ -357,7 +357,7 @@ void ssh_signature_free(ssh_signature sig)
 #endif
             break;
         case SSH_KEYTYPE_ECDSA:
-#ifdef HAVE_LIBGCRYPT_ECC
+#ifdef HAVE_GCRYPT_ECC
             gcry_sexp_release(sig->ecdsa_sig);
 #elif defined(HAVE_LIBCRYPTO) && defined(HAVE_OPENSSL_ECC)
             ECDSA_SIG_free(sig->ecdsa_sig);
-- 
2.10.2


References:
Re: Build libssh against gcryptAndreas Schneider <asn@xxxxxxxxxxxxxx>
[PATCH 1/2] pki_gcrypt: Fix memory leak.Justus Winter <justus@xxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org