[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/2] pki_gcrypt: Fix freeing of ECDSA signatures.
[Thread Prev] | [Thread Next]
- Subject: [PATCH 2/2] pki_gcrypt: Fix freeing of ECDSA signatures.
- From: Justus Winter <justus@xxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 9 Nov 2016 16:34:15 +0100
- To: libssh@xxxxxxxxxx
- Cc: Justus Winter <justus@xxxxxxxxxxx>
* 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
Re: Build libssh against gcrypt | Andreas Schneider <asn@xxxxxxxxxxxxxx> |
[PATCH 1/2] pki_gcrypt: Fix memory leak. | Justus Winter <justus@xxxxxxxxxxx> |