diff options
author | Tim Kosse <tim.kosse@filezilla-project.org> | 2016-01-15 13:48:10 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-05-30 10:15:01 +0200 |
commit | b065a235f1f354b9a647e05830e277efb44a2c3d (patch) | |
tree | 77a013d71ce2cfb9aeddbcc0e56975dc8681e631 /tests/status-request.c | |
parent | 5086808e6654c62e6d1e7c40d3bd7a60d89c2959 (diff) | |
download | gnutls-b065a235f1f354b9a647e05830e277efb44a2c3d.tar.gz |
Move call to terminate() until after printing the error message.
Diffstat (limited to 'tests/status-request.c')
-rw-r--r-- | tests/status-request.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/status-request.c b/tests/status-request.c index f0e528cf91..8a4f2691d4 100644 --- a/tests/status-request.c +++ b/tests/status-request.c @@ -174,9 +174,8 @@ static void client(int fd) } if (ret < 0) { - terminate(); fail("client: Handshake failed: %s\n", gnutls_strerror(ret)); - exit(1); + terminate(); } else { if (debug) success("client: Handshake was completed\n"); @@ -200,9 +199,8 @@ static void client(int fd) ("client: Peer has closed the TLS connection\n"); goto end; } else if (ret < 0) { - terminate(); fail("client: Error: %s\n", gnutls_strerror(ret)); - exit(1); + terminate(); } gnutls_bye(session, GNUTLS_SHUT_WR); |