summaryrefslogtreecommitdiffstats
path: root/test/wpackettest.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/wpackettest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/wpackettest.c b/test/wpackettest.c
index 1284d7a0ce..8e5eb8d4cf 100644
--- a/test/wpackettest.c
+++ b/test/wpackettest.c
@@ -590,7 +590,7 @@ static int test_WPACKET_quic_vlint_random(void)
if (!TEST_int_gt(RAND_bytes(rand_data, sizeof(rand_data)), 0))
return cleanup(&pkt);
- expected = *(uint64_t*)rand_data;
+ memcpy(&expected, rand_data, sizeof(uint64_t));
/*
* Ensure that all size classes get tested with equal probability.