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.
This commit is contained in:
Frederic Lecaille 2024-08-30 14:25:26 +02:00
parent f5b09dc452
commit 76c80605a6

View file

@ -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;
}