summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--lib/gnutls_pk.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 84dee8ba8a..05cf2d6293 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-Version 0.4.1
+Version 0.4.1 (7/04/2002)
- Now uses alloca() for temporary variables
- Optimized RSA signing
- Added functions to return the peer's certificate activation and
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) {