]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Non checked returned value for cs_new() in hq_interop_decode_qcs()
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 15 Feb 2022 08:13:05 +0000 (09:13 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 15 Feb 2022 16:23:44 +0000 (17:23 +0100)
This should fix CID 1469657 for GH #1546

src/hq_interop.c

index 11d729a3e02144fc9423e1715b034979be12ab8e..0e2c6cd5128dd7fb03a595c48caff11cce2c7eb7 100644 (file)
@@ -73,6 +73,9 @@ static int hq_interop_decode_qcs(struct qcs *qcs, int fin, void *ctx)
        htx_to_buf(htx, &htx_buf);
 
        cs = cs_new(qcs->qcc->conn, qcs->qcc->conn->target);
+       if (!cs)
+               return -1;
+
        cs->ctx = qcs;
        stream_create_from_cs(cs, &htx_buf);