]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Corrected bug in gnutls_srp_verifier() that prevented the allocation of a verifier...
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 3 Apr 2011 08:52:21 +0000 (10:52 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 3 Apr 2011 08:54:50 +0000 (10:54 +0200)
lib/gnutls_srp.c

index df4e55e80e31072e087f90956e03d3ed20700b48..6e0785450844deab10cdecdd008476dbd8b6e6f8 100644 (file)
@@ -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)