summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2022-10-28 07:32:54 +0100
committerPauli <pauli@openssl.org>2022-11-02 08:46:35 +1100
commit8f5932834c99c74dadc9ae23d89bfe0704b091de (patch)
tree597a1531ecd9ad654cccced8896f90014f4b90f7
parent88c53cf17d21b06b05043af49af3498665357a6f (diff)
Fix unused variable in QUIC send stream test
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19526)
-rw-r--r--test/quic_stream_test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/quic_stream_test.c b/test/quic_stream_test.c
index 844e78da7d..3f0532b1ea 100644
--- a/test/quic_stream_test.c
+++ b/test/quic_stream_test.c
@@ -210,7 +210,7 @@ static int test_bulk(int idx)
QUIC_SSTREAM *sstream = NULL;
OSSL_QUIC_FRAME_STREAM hdr;
OSSL_QTX_IOVEC iov[2];
- size_t i, num_iov = 0, init_size = 8192, total_written = 0, l;
+ size_t i, num_iov = 0, init_size = 8192, l;
size_t consumed = 0, rd, expected = 0;
unsigned char *src_buf = NULL, *dst_buf = NULL;
unsigned char *ref_src_buf = NULL, *ref_dst_buf = NULL;
@@ -259,7 +259,6 @@ static int test_bulk(int idx)
memcpy(ref_src_cur, src_buf, consumed);
ref_src_cur += consumed;
- total_written += consumed;
} while (consumed > 0);
if (!TEST_size_t_eq(ossl_quic_sstream_get_buffer_used(sstream), init_size)