From: Nikos Mavrogiannopoulos Date: Wed, 29 Sep 2010 09:09:05 +0000 (+0200) Subject: Corrected behavior on failure (don't crash). X-Git-Tag: gnutls_2_11_3~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37610c48d7e7518ebc28761c2e4366280865ee2e;p=thirdparty%2Fgnutls.git Corrected behavior on failure (don't crash). --- diff --git a/tests/resume.c b/tests/resume.c index f746d30be8..488dd8c20d 100644 --- a/tests/resume.c +++ b/tests/resume.c @@ -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); }