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-ok.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-ok.c')
-rw-r--r-- | tests/status-request-ok.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/status-request-ok.c b/tests/status-request-ok.c index b7d7f4c76e..293671dd71 100644 --- a/tests/status-request-ok.c +++ b/tests/status-request-ok.c @@ -180,9 +180,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"); @@ -194,9 +193,8 @@ static void client(int fd) (gnutls_protocol_get_version(session))); if (received == 0) { - terminate(); fail("client: didn't receive status request\n"); - exit(1); + terminate(); } gnutls_bye(session, GNUTLS_SHUT_WR); |