]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix unused variable in QUIC send stream test
authorHugo Landau <hlandau@openssl.org>
Fri, 28 Oct 2022 06:32:54 +0000 (07:32 +0100)
committerPauli <pauli@openssl.org>
Tue, 1 Nov 2022 21:46:35 +0000 (08:46 +1100)
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)

test/quic_stream_test.c

index 844e78da7d0ce9e96612696f3e45076c3ccc3c5e..3f0532b1ea9999a6498410ddff2228c97aeb5c9d 100644 (file)
@@ -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)