summaryrefslogtreecommitdiff
path: root/lib/gnutls_srp.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-04-03 10:52:21 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-04-03 10:54:50 +0200
commit463f925edd6e6b7196a31c4176d4af67d01d0c59 (patch)
tree05375ab8ae3adfde140dc729a140da5a96978688 /lib/gnutls_srp.c
parent047a5ccbe87e3c35eb036225e398f25cb9e55158 (diff)
downloadgnutls-463f925edd6e6b7196a31c4176d4af67d01d0c59.tar.gz
Corrected bug in gnutls_srp_verifier() that prevented the allocation of a verifier. Reported by Andrew Wiseman.
Diffstat (limited to 'lib/gnutls_srp.c')
-rw-r--r--lib/gnutls_srp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_srp.c b/lib/gnutls_srp.c
index df4e55e80e..6e07854508 100644
--- a/lib/gnutls_srp.c
+++ b/lib/gnutls_srp.c
@@ -69,7 +69,7 @@ _gnutls_srp_gx (opaque * text, size_t textsize, opaque ** result,
_gnutls_mpi_release (&x);
ret = _gnutls_mpi_print (e, NULL, &result_size);
- if (ret != GNUTLS_E_SHORT_MEMORY_BUFFER)
+ if (ret == GNUTLS_E_SHORT_MEMORY_BUFFER)
{
*result = galloc_func (result_size);
if ((*result) == NULL)