]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-quic: fix trace on stream creation
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 16 Dec 2021 14:22:30 +0000 (15:22 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 17 Dec 2021 08:55:01 +0000 (09:55 +0100)
Replace non-initialized qcs.by_id.key by the id to report the proper
stream ID on stream creation.

src/mux_quic.c

index c4bd1bfd5e1456085d5ce40dfa68adb50eec67d9..f7c38c7460da328b6ede12af436b44bc1aef3907 100644 (file)
@@ -40,7 +40,7 @@ struct qcs *qcs_new(struct qcc *qcc, uint64_t id, enum qcs_type type)
        if (!qcs)
                goto out;
 
-       fprintf(stderr, "%s: stream ID %llu\n", __func__, qcs->by_id.key);
+       fprintf(stderr, "%s: stream ID %lu\n", __func__, id);
 
        qcs->qcc = qcc;
        qcs->cs = NULL;