summaryrefslogtreecommitdiffstats
path: root/src/quic_retry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/quic_retry.c')
-rw-r--r--src/quic_retry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quic_retry.c b/src/quic_retry.c
index 1c58e5e..f1d55b8 100644
--- a/src/quic_retry.c
+++ b/src/quic_retry.c
@@ -60,7 +60,7 @@ static int quic_generate_retry_token_aad(unsigned char *aad,
unsigned char *p;
p = aad;
- *(uint32_t *)p = htonl(version);
+ write_u32(p, htonl(version));
p += sizeof version;
p += quic_saddr_cpy(p, addr);
memcpy(p, cid->data, cid->len);