legacy,keys: Fix the macro conditions

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 3642224ee5)
This commit is contained in:
Jakub Jelen
2019-12-16 16:54:56 +01:00
committed by Andreas Schneider
parent 226d2a16b0
commit d5a37e2bf5
2 changed files with 7 additions and 7 deletions

View File

@@ -353,7 +353,7 @@ void publickey_free(ssh_public_key key) {
case SSH_KEYTYPE_DSS:
#ifdef HAVE_LIBGCRYPT
gcry_sexp_release(key->dsa_pub);
#elif HAVE_LIBCRYPTO
#elif defined HAVE_LIBCRYPTO
DSA_free(key->dsa_pub);
#endif
break;