CLEANUP: quic: complete ABORT_NOW with a TODO comment

Add a TODO comment to not forget to properly implement error returned by
qcs_push_frame.
This commit is contained in:
Amaury Denoyelle 2022-03-04 16:51:20 +01:00
parent d8ac3f5dbf
commit 1455113e93

View File

@ -418,8 +418,7 @@ static int qc_send(struct qcc *qcc)
if (b_data(buf)) { if (b_data(buf)) {
char fin = qcs->flags & QC_SF_FIN_STREAM; char fin = qcs->flags & QC_SF_FIN_STREAM;
ret = qcs_push_frame(qcs, buf, fin, qcs->tx.offset); ret = qcs_push_frame(qcs, buf, fin, qcs->tx.offset);
if (ret < 0) BUG_ON(ret < 0); /* TODO handle this properly */
ABORT_NOW();
if (ret > 0) { if (ret > 0) {
qcs_notify_send(qcs); qcs_notify_send(qcs);