]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Corrected behavior on failure (don't crash).
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 29 Sep 2010 09:09:05 +0000 (11:09 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 29 Sep 2010 09:09:05 +0000 (11:09 +0200)
tests/resume.c

index f746d30be86d87e53f1c4cf5e30b763ab7e3c5f3..488dd8c20d8394095e42418bc18ee903bdff93a0 100644 (file)
@@ -109,7 +109,6 @@ client (struct params_res *params)
 
   for (t = 0; t < 2; t++)
     {                          /* connect 2 times to the server */
-
       /* connect to the peer
        */
       sd = tcp_connect ();
@@ -218,13 +217,13 @@ client (struct params_res *params)
 
       gnutls_bye (session, GNUTLS_SHUT_RDWR);
 
-    end:
 
       tcp_close (sd);
 
       gnutls_deinit (session);
     }
 
+end:
   gnutls_anon_free_client_credentials (anoncred);
 }