From: Frédéric Lécaille Date: Tue, 15 Feb 2022 08:25:06 +0000 (+0100) Subject: MINOR: quic: Non checked returned value for cs_new() in h3_decode_qcs() X-Git-Tag: v2.6-dev2~132 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=59509b518758b3739af53f04337b1d3f9135a10f;p=thirdparty%2Fhaproxy.git MINOR: quic: Non checked returned value for cs_new() in h3_decode_qcs() This should fix CID 1469664 for GH #1546 --- diff --git a/src/h3.c b/src/h3.c index a7f0cda8f7..b9e4d5e5a5 100644 --- a/src/h3.c +++ b/src/h3.c @@ -176,6 +176,9 @@ static int h3_headers_to_htx(struct qcs *qcs, struct buffer *buf, uint64_t len, htx->flags |= HTX_FL_EOM; cs = cs_new(qcs->qcc->conn, qcs->qcc->conn->target); + if (!cs) + return 1; + cs->flags |= CS_FL_NOT_FIRST; cs->ctx = qcs; stream_create_from_cs(cs, &htx_buf);