summaryrefslogtreecommitdiff
path: root/src/benchmark-tls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmark-tls.c')
-rw-r--r--src/benchmark-tls.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/benchmark-tls.c b/src/benchmark-tls.c
index 285010ae1f..b0004cf1af 100644
--- a/src/benchmark-tls.c
+++ b/src/benchmark-tls.c
@@ -301,7 +301,11 @@ static void test_ciphersuite(const char *cipher_prio, int size)
gnutls_protocol_get_version(server)));
fflush(stdout);
- gnutls_rnd(GNUTLS_RND_NONCE, buffer, sizeof(buffer));
+ ret = gnutls_rnd(GNUTLS_RND_NONCE, buffer, sizeof(buffer));
+ if (ret < 0) {
+ fprintf(stderr, "Error in %s\n", str);
+ exit(1);
+ }
start_benchmark(&st);