mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-24 12:20:59 +01:00
MINOR: quic: Wrong STREAM frame length computing
The ->len and ->offset field of STREAM frame are optional.
This commit is contained in:
parent
e16f0bd1e3
commit
ca9d32c785
@ -71,8 +71,9 @@ static inline size_t qc_frm_len(struct quic_frame *frm)
|
|||||||
}
|
}
|
||||||
case QUIC_FT_STREAM_8 ... QUIC_FT_STREAM_F: {
|
case QUIC_FT_STREAM_8 ... QUIC_FT_STREAM_F: {
|
||||||
struct quic_stream *f = &frm->stream;
|
struct quic_stream *f = &frm->stream;
|
||||||
len += 1 + quic_int_getsize(f->id) + quic_int_getsize(f->offset) +
|
len += 1 + quic_int_getsize(f->id) +
|
||||||
quic_int_getsize(f->len) + f->len;
|
((frm->type & QUIC_STREAM_FRAME_TYPE_OFF_BIT) ? quic_int_getsize(f->offset) : 0) +
|
||||||
|
((frm->type & QUIC_STREAM_FRAME_TYPE_LEN_BIT) ? quic_int_getsize(f->len) : 0) + f->len;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case QUIC_FT_MAX_DATA: {
|
case QUIC_FT_MAX_DATA: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user