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:
Frédéric Lécaille 2022-09-08 15:49:37 +02:00
parent 3c1b81fdd7
commit 1c725aa9cd

View File

@ -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);