]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix MARSHALLED_TOKEN_MAX_LEN
authorAndrew Dinh <andrewd@openssl.org>
Thu, 2 Jan 2025 03:46:06 +0000 (19:46 -0800)
committerNeil Horman <nhorman@openssl.org>
Mon, 17 Feb 2025 16:27:33 +0000 (11:27 -0500)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26333)

ssl/quic/quic_port.c

index 6185005aecbad98b81d54814db99e8d518ca5c0b..d477f64b1cb2a654fc366fdfca75df97588ce7d1 100644 (file)
@@ -82,7 +82,7 @@ typedef struct validation_token {
  *   maximally sized AF_UNIX socket)
  * - is_retry is a single byte
  */
-#define MARSHALLED_TOKEN_MAX_LEN 197
+#define MARSHALLED_TOKEN_MAX_LEN 169
 
 /*
  * Maximum length of an encrypted marshalled validation token.
@@ -760,7 +760,7 @@ static int generate_retry_token(BIO_ADDR *peer, QUIC_CONN_ID odcid,
  * @brief Marshals a validation token into a new buffer.
  *
  * |buffer| should already be allocated and at least MARSHALLED_TOKEN_MAX_LEN
- * bytes long. Stores the actual data stored in |buffer| in |buffer_len|.
+ * bytes long. Stores the length of data stored in |buffer| in |buffer_len|.
  *
  * @param token      Validation token.
  * @param buffer     Address to store the marshalled token.