From 59509b518758b3739af53f04337b1d3f9135a10f 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:25:06 +0100 Subject: [PATCH] MINOR: quic: Non checked returned value for cs_new() in h3_decode_qcs() This should fix CID 1469664 for GH #1546 --- src/h3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/h3.c b/src/h3.c index a7f0cda8f..b9e4d5e5a 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);