goto err;
}
- if (!conn_is_back(qcs->qcc->conn)) {
- /* RFC 9114 7.2.3. CANCEL_PUSH
- *
- * If a server receives a CANCEL_PUSH frame for a push ID
- * that has not yet been mentioned by a PUSH_PROMISE frame, this MUST be
- * treated as a connection error of type H3_ID_ERROR.
- */
- TRACE_ERROR("reject CANCEL_PUSH from client", H3_EV_RX_FRAME, qcs->qcc->conn, qcs);
- qcc_set_error(qcs->qcc, H3_ERR_ID_ERROR, 1,
- muxc_tevt_type_proto_err);
- qcc_report_glitch(qcs->qcc, 1);
- goto err;
- }
- else {
- /* Not supported */
- ret = flen;
- }
- break;
+ /* RFC 9114 7.2.3. CANCEL_PUSH
+ *
+ * If a CANCEL_PUSH frame is received that
+ * references a push ID greater than currently allowed on the
+ * connection, this MUST be treated as a connection error of type
+ * H3_ID_ERROR.
+ *
+ * If a server receives a CANCEL_PUSH frame for a push ID
+ * that has not yet been mentioned by a PUSH_PROMISE frame, this MUST be
+ * treated as a connection error of type H3_ID_ERROR.
+ */
+ TRACE_ERROR("reject CANCEL_PUSH from peer", H3_EV_RX_FRAME, qcs->qcc->conn, qcs);
+ qcc_set_error(qcs->qcc, H3_ERR_ID_ERROR, 1, muxc_tevt_type_proto_err);
+ qcc_report_glitch(qcs->qcc, 1);
+ goto err;
case H3_FT_GOAWAY:
ret = h3_parse_goaway_frm(qcs->qcc->ctx, b, flen);
if (ret < 0) {