summaryrefslogtreecommitdiff
path: root/lib/gnutls_mpi.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-01-26 09:31:42 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-01-26 10:11:30 +0100
commit1a90bc32fe87b2859f302b77619e2fece5c1ad82 (patch)
tree4d95ba6163df5a0165eed5373b149bdb3a060a76 /lib/gnutls_mpi.c
parent52d140d6ee54544ba01507c75df832e92870f877 (diff)
downloadgnutls-1a90bc32fe87b2859f302b77619e2fece5c1ad82.tar.gz
updated prototypes of _gnutls_mpi_set, _gnutls_mpi_set_ui,, _gnutls_mpi_copy
Diffstat (limited to 'lib/gnutls_mpi.c')
-rw-r--r--lib/gnutls_mpi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/gnutls_mpi.c b/lib/gnutls_mpi.c
index 44dbc9d5e0..fc059da303 100644
--- a/lib/gnutls_mpi.c
+++ b/lib/gnutls_mpi.c
@@ -87,7 +87,10 @@ _gnutls_mpi_random_modp(bigint_t r, bigint_t p,
}
if (r != NULL) {
- _gnutls_mpi_set(r, tmp);
+ ret = _gnutls_mpi_set(r, tmp);
+ if (ret < 0)
+ goto cleanup;
+
_gnutls_mpi_release(&tmp);
return r;
}