mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-04-12 22:41:02 +02:00
BUG/MINOR: quic: increment pos pointer on QMux transport params parsing
QUIC frame parsers functions take a <pos> pointer as input argument for the data to be parsed. If parsing is successful, <pos> must be incremented to point to the next data. Increment was not performed when parsing QMux transport parameters frame. This commit fixes this. Note that for now there is no real issue as xprt_qstrm does not check the QMux frame length. No need to backport.
This commit is contained in:
parent
90d0e8a948
commit
c63e6ecd4b
@ -1081,6 +1081,7 @@ static int quic_parse_qmux_transport_parameters(struct quic_frame *frm, struct q
|
||||
if (!quic_transport_params_decode(¶ms_frm->params, 1, *pos, end))
|
||||
return 0;
|
||||
|
||||
*pos += len;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user