projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cde9112
)
BUG/MINOR: h1-htx: Fix a typo when request parser is reset
author
Christopher Faulet
<cfaulet@haproxy.com>
Thu, 23 Sep 2021 13:38:26 +0000
(15:38 +0200)
committer
Christopher Faulet
<cfaulet@haproxy.com>
Thu, 23 Sep 2021 14:10:36 +0000
(16:10 +0200)
In h1_postparse_req_hdrs(), if we need more space to copy headers, the request
parser is reset. However, because of a typo, it was reset as a response parser
instead of a request one. h1m_init_req() must be called.
This patch must be backported as far as 2.2.
src/h1_htx.c
patch
|
blob
|
history
diff --git
a/src/h1_htx.c
b/src/h1_htx.c
index
6ea19d2
..
8600c52
100644
(file)
--- a/
src/h1_htx.c
+++ b/
src/h1_htx.c
@@
-165,7
+165,7
@@
static int h1_postparse_req_hdrs(struct h1m *h1m, union h1_sl *h1sl, struct htx
if (h1_eval_htx_size(meth, uri, vsn, hdrs) > max) {
if (htx_is_empty(htx))
goto error;
- h1m_init_res(h1m);
+ h1m_init_req(h1m);
h1m->flags |= (H1_MF_NO_PHDR|H1_MF_CLEAN_CONN_HDR);
return 0;
}