]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
updated example
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 9 Feb 2012 07:23:14 +0000 (08:23 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 9 Feb 2012 07:23:14 +0000 (08:23 +0100)
doc/examples/ex-client-srp.c

index 2ec86d48659028f2c26f9ddafb83835d3890b041..77840758e9adea35ce6c02ed4539b41da253a2eb 100644 (file)
@@ -82,7 +82,7 @@ main (void)
   gnutls_record_send (session, MSG, strlen (MSG));
 
   ret = gnutls_record_recv (session, buffer, MAX_BUF);
-  if (gnutls_error_is_fatal (ret) == 1 || ret == 0)
+  if (gnutls_error_is_fatal (ret) != 0 || ret == 0)
     {
       if (ret == 0)
         {