From 1e1fb5db45dba2da76c0a6ae0effeb73c3d58aa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 15 Feb 2022 09:13:05 +0100 Subject: [PATCH] MINOR: quic: Non checked returned value for cs_new() in hq_interop_decode_qcs() This should fix CID 1469657 for GH #1546 --- src/hq_interop.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hq_interop.c b/src/hq_interop.c index 11d729a3e..0e2c6cd51 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);