diff --git a/src/h3.c b/src/h3.c index 0616b764c..24db5e96c 100644 --- a/src/h3.c +++ b/src/h3.c @@ -36,7 +36,6 @@ #include #include #include -#include #include #include #include @@ -2177,7 +2176,7 @@ static int h3_send_goaway(struct h3c *h3c) static int h3_init(struct qcc *qcc) { struct h3c *h3c; - struct quic_conn *qc = qcc->conn->handle.qc; + const struct listener *li = __objt_listener(qcc->conn->target); h3c = pool_alloc(pool_head_h3c); if (!h3c) @@ -2190,9 +2189,8 @@ static int h3_init(struct qcc *qcc) h3c->id_goaway = 0; qcc->ctx = h3c; - /* TODO cleanup only ref to quic_conn */ h3c->prx_counters = - EXTRA_COUNTERS_GET(qc->li->bind_conf->frontend->extra_counters_fe, + EXTRA_COUNTERS_GET(li->bind_conf->frontend->extra_counters_fe, &h3_stats_module); LIST_INIT(&h3c->buf_wait.list);