mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 14:17:30 -04: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
1 changed files with 3 additions and 0 deletions
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 qcs *qcs = a2;
|
||||
|
||||
if (!qcc)
|
||||
return;
|
||||
|
||||
if (src->verbosity > H3_VERB_CLEAN) {
|
||||
chunk_appendf(&trace_buf, " : qcc=%p(F)", qcc);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue