]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: quic: Make sure we return NULL in quic_conn_app_io_cb if needed
authorOlivier Houchard <cognet@ci0.org>
Fri, 25 Apr 2025 11:02:47 +0000 (13:02 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 25 Apr 2025 14:14:26 +0000 (16:14 +0200)
In quic_conn_app_io_cb, make sure we return NULL if the tasklet has been
destroyed, so that the scheduler knows. It is not yet needed, but will
be soon.

src/quic_conn.c

index a6fbb2cc50648fb783e712e1f5e13c08076a1220..547c8981745346c7e4ae993ae1a31e3e5d429505 100644 (file)
@@ -626,6 +626,7 @@ struct task *quic_conn_app_io_cb(struct task *t, void *context, unsigned int sta
  out:
        if ((qc->flags & QUIC_FL_CONN_CLOSING) && qc->mux_state != QC_MUX_READY) {
                quic_conn_release(qc);
+               t = NULL;
                qc = NULL;
        }