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

This should fix CID 1469657 for GH #1546
This commit is contained in:
Frédéric Lécaille 2022-02-15 09:13:05 +01:00 committed by Amaury Denoyelle
parent 498e992c1c
commit 1e1fb5db45

View File

@ -73,6 +73,9 @@ static int hq_interop_decode_qcs(struct qcs *qcs, int fin, void *ctx)
htx_to_buf(htx, &htx_buf); htx_to_buf(htx, &htx_buf);
cs = cs_new(qcs->qcc->conn, qcs->qcc->conn->target); cs = cs_new(qcs->qcc->conn, qcs->qcc->conn->target);
if (!cs)
return -1;
cs->ctx = qcs; cs->ctx = qcs;
stream_create_from_cs(cs, &htx_buf); stream_create_from_cs(cs, &htx_buf);