diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-18 11:14:16 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-18 11:56:30 +0200 |
commit | 1ab4856bc52d350e7257afad82a3f10f2dae6a3b (patch) | |
tree | 2b866fea9321fbf885c9000900b814de6480aac6 | |
parent | 4b3b1abc805829eb028d229987cf37ade6beb791 (diff) | |
download | gnutls-1ab4856bc52d350e7257afad82a3f10f2dae6a3b.tar.gz |
gnutls-cli: fixed bounds check on benchmark-tls
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r-- | src/benchmark-tls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/benchmark-tls.c b/src/benchmark-tls.c index 82aefefe2a..085f6a402a 100644 --- a/src/benchmark-tls.c +++ b/src/benchmark-tls.c @@ -495,7 +495,7 @@ static void test_ciphersuite_kx(const char *cipher_prio, unsigned pk) gnutls_deinit(server); diffs[diffs_size++] = timespec_sub_ms(&tr_stop, &tr_start); - if (diffs_size > sizeof(diffs)) + if (diffs_size > sizeof(diffs)/sizeof(diffs[0])) abort(); st.size += 1; |