mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-16 10:40:58 +00:00
BUG/MINOR: h3: Crash when h3 trace verbosity is "minimal"
This was due to a missing check in h3_trace() about the first argument presence (connection) and h3_parse_settings_frm() which calls TRACE_LEAVE() without any argument. Then this argument was dereferenced. Must be backported to 2.6
This commit is contained in:
parent
3c1b81fdd7
commit
1c725aa9cd
3
src/h3.c
3
src/h3.c
@ -1248,6 +1248,9 @@ static void h3_trace(enum trace_level level, uint64_t mask,
|
|||||||
const struct qcc *qcc = conn ? conn->ctx : NULL;
|
const struct qcc *qcc = conn ? conn->ctx : NULL;
|
||||||
const struct qcs *qcs = a2;
|
const struct qcs *qcs = a2;
|
||||||
|
|
||||||
|
if (!qcc)
|
||||||
|
return;
|
||||||
|
|
||||||
if (src->verbosity > H3_VERB_CLEAN) {
|
if (src->verbosity > H3_VERB_CLEAN) {
|
||||||
chunk_appendf(&trace_buf, " : qcc=%p(F)", qcc);
|
chunk_appendf(&trace_buf, " : qcc=%p(F)", qcc);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user