diff options
Diffstat (limited to 'lib/gnutls_pk.c')
-rw-r--r-- | lib/gnutls_pk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gnutls_pk.c b/lib/gnutls_pk.c index 9866d73f34..1304d93d7c 100644 --- a/lib/gnutls_pk.c +++ b/lib/gnutls_pk.c @@ -186,8 +186,9 @@ int _gnutls_pkcs1_rsa_decrypt(gnutls_sdatum * plaintext, */ if (btype==2) ret = _gnutls_pk_decrypt(GCRY_PK_RSA, &res, c, params, params_len); - else + else { ret = _gnutls_pk_encrypt(GCRY_PK_RSA, &res, c, params, params_len); + } _gnutls_mpi_release(&c); if (ret < 0) { |