diff --git a/include/proto/h1.h b/include/proto/h1.h index 22b5c6e89..7fd32241b 100644 --- a/include/proto/h1.h +++ b/include/proto/h1.h @@ -309,6 +309,7 @@ static inline int h1_parse_chunk_size(const struct buffer *buf, int start, int s static inline struct h1m *h1m_init(struct h1m *h1m) { h1m->state = H1_MSG_RQBEFORE; + h1m->next = 0; h1m->status = 0; h1m->flags = 0; h1m->curr_len = 0; diff --git a/include/types/h1.h b/include/types/h1.h index 85876086f..7d9c12e90 100644 --- a/include/types/h1.h +++ b/include/types/h1.h @@ -158,6 +158,7 @@ struct h1m { uint32_t flags; // H1 message flags (H1_MF_*) uint64_t curr_len; // content-length or last chunk length uint64_t body_len; // total known size of the body length + uint32_t next; // next byte to parse, relative to buffer's head int err_pos; // position in the byte stream of the first error (H1 or H2) int err_state; // state where the first error was met (H1 or H2) };