]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
quic: small cleanup, write is_retry with u8
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Fri, 10 Oct 2025 15:13:17 +0000 (23:13 +0800)
committerTomas Mraz <tomas@openssl.org>
Fri, 17 Oct 2025 17:15:32 +0000 (19:15 +0200)
Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28828)

ssl/quic/quic_port.c

index cc646f51fef4812d70008062d7762ab1cd70adcc..1fc05092137672b3be4d4cae67f16b0eb7e020a4 100644 (file)
@@ -903,7 +903,7 @@ static int marshal_validation_token(QUIC_VALIDATION_TOKEN *token,
     }
 
     if (!WPACKET_init(&wpkt, buf_mem)
-        || !WPACKET_memset(&wpkt, token->is_retry, 1)
+        || !WPACKET_put_bytes_u8(&wpkt, token->is_retry)
         || !WPACKET_memcpy(&wpkt, &token->timestamp,
                            sizeof(token->timestamp))
         || (token->is_retry