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.
(cherry picked from commit
76c80605a6cc7880e4184c52fb1a314367410271)
Signed-off-by: Frederic Lecaille <flecaille@haproxy.com>
return 0;
memcpy(*pos, new_token_frm->data, new_token_frm->len);
+ *pos += new_token_frm->len;
return 1;
}