From: Frédéric Lécaille Date: Tue, 15 Feb 2022 08:13:05 +0000 (+0100) Subject: MINOR: quic: Non checked returned value for cs_new() in hq_interop_decode_qcs() X-Git-Tag: v2.6-dev2~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e1fb5db45dba2da76c0a6ae0effeb73c3d58aa1;p=thirdparty%2Fhaproxy.git MINOR: quic: Non checked returned value for cs_new() in hq_interop_decode_qcs() This should fix CID 1469657 for GH #1546 --- diff --git a/src/hq_interop.c b/src/hq_interop.c index 11d729a3e0..0e2c6cd512 100644 --- a/src/hq_interop.c +++ b/src/hq_interop.c @@ -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);