MINOR: quic: Non checked returned value for cs_new() in h3_decode_qcs()

This should fix CID 1469664 for GH #1546
This commit is contained in:
Frédéric Lécaille 2022-02-15 09:25:06 +01:00 committed by Amaury Denoyelle
parent 3c08cb4948
commit 59509b5187

View File

@ -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);