From 76c80605a6cc7880e4184c52fb1a314367410271 Mon Sep 17 00:00:00 2001 From: Frederic Lecaille Date: Fri, 30 Aug 2024 14:25:26 +0200 Subject: [PATCH] BUG/MINOR: quic: Missing incrementation in NEW_TOKEN frame builder quic_build_new_token_frame() is the function which is called to build a NEW_TOKEN frame into a buffer. The position pointer for this buffer was not updated, leading the NEW_TOKEN frame to be malformed. Must be backported as far as 2.6. --- src/quic_frame.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/quic_frame.c b/src/quic_frame.c index 41309dbfe..8d42786e0 100644 --- a/src/quic_frame.c +++ b/src/quic_frame.c @@ -485,6 +485,7 @@ static int quic_build_new_token_frame(unsigned char **pos, const unsigned char * return 0; memcpy(*pos, new_token_frm->data, new_token_frm->len); + *pos += new_token_frm->len; return 1; }