mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-10-27 06:31:23 +01:00
TESTS: quic: useless param for b_quic_dec_int()
The third parameter passed to b_quic_dec_int() is unitialized. This is not a bug. But this disturbs coverity for an unknown reason as revealed by GH issue #3154. This patch takes the opportunity to use NULL as passed value to avoid using such an uneeded third parameter. Should be backported to 3.2 where this unit test was introduced.
This commit is contained in:
parent
17930edecc
commit
d5f4872ba6
@ -9,7 +9,6 @@ int quic_enc_unittest(int argc, char **argv)
|
|||||||
uint64_t val = 0;
|
uint64_t val = 0;
|
||||||
struct buffer b;
|
struct buffer b;
|
||||||
char area[12];
|
char area[12];
|
||||||
size_t len;
|
|
||||||
|
|
||||||
int ret = 1;
|
int ret = 1;
|
||||||
|
|
||||||
@ -20,7 +19,7 @@ int quic_enc_unittest(int argc, char **argv)
|
|||||||
BUG_ON(b_data(&b) != b_contig_data(&b, b_head_ofs(&b)));
|
BUG_ON(b_data(&b) != b_contig_data(&b, b_head_ofs(&b)));
|
||||||
|
|
||||||
/* test that b_quic_dec_int() can decode a wrapping value */
|
/* test that b_quic_dec_int() can decode a wrapping value */
|
||||||
b_quic_dec_int(&val, &b, &len);
|
b_quic_dec_int(&val, &b, NULL);
|
||||||
if (val != init)
|
if (val != init)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user