commit | 59509b518758b3739af53f04337b1d3f9135a10f | [log] [tgz] |
---|---|---|
author | Frédéric Lécaille <flecaille@haproxy.com> | Tue Feb 15 09:25:06 2022 +0100 |
committer | Amaury Denoyelle <adenoyelle@haproxy.com> | Tue Feb 15 17:33:21 2022 +0100 |
tree | 0bd63016e914d5932a7bd9757571f9b673701ed0 | |
parent | 3c08cb49483d14c356702b581ea3832d5bc55890 [diff] |
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 a7f0cda..b9e4d5e 100644 --- a/src/h3.c +++ b/src/h3.c
@@ -176,6 +176,9 @@ 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);