summaryrefslogtreecommitdiff
path: root/tests/session-tickets-ok.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/session-tickets-ok.c')
-rw-r--r--tests/session-tickets-ok.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/session-tickets-ok.c b/tests/session-tickets-ok.c
index 56aae5063c..ce06b222e3 100644
--- a/tests/session-tickets-ok.c
+++ b/tests/session-tickets-ok.c
@@ -112,7 +112,7 @@ static void client(int fd, const char *prio)
if (ret < 0) {
fail("client: Handshake failed: %s\n", gnutls_strerror(ret));
- terminate();
+ exit(1);
} else {
if (debug)
success("client: Handshake was completed\n");
@@ -140,6 +140,7 @@ pid_t child;
static void terminate(void)
{
+ assert(child);
kill(child, SIGTERM);
exit(1);
}