summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-09-29 11:09:05 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-09-29 11:09:05 +0200
commit37610c48d7e7518ebc28761c2e4366280865ee2e (patch)
tree8799922ab1d6f82aefecf79dd6c5ecfbfec96a7f /tests
parent0a42348eaae840bcee74a87cbef04f3ae21ee480 (diff)
downloadgnutls-37610c48d7e7518ebc28761c2e4366280865ee2e.tar.gz
Corrected behavior on failure (don't crash).
Diffstat (limited to 'tests')
-rw-r--r--tests/resume.c3
1 files changed, 1 insertions, 2 deletions
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);
}