diff --git a/src/mux_quic.c b/src/mux_quic.c index a0d586fe5e..ae504ee652 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -1606,18 +1606,16 @@ int qcc_recv_stop_sending(struct qcc *qcc, uint64_t id, uint64_t err) } } - if (qcs_sc(qcs)) { - /* Manually set EOS if FIN already reached as futures RESET_STREAM will be ignored in this case. */ - if (se_fl_test(qcs->sd, SE_FL_EOI)) { - se_fl_set(qcs->sd, SE_FL_EOS); - qcs_alert(qcs); - } + /* Manually set EOS if FIN already reached as futures RESET_STREAM will be ignored in this case. */ + if (qcs_sc(qcs) && se_fl_test(qcs->sd, SE_FL_EOI)) { + se_fl_set(qcs->sd, SE_FL_EOS); + qcs_alert(qcs); + } - /* If not defined yet, set abort info for the sedesc */ - if (!qcs->sd->abort_info.info) { - qcs->sd->abort_info.info = (SE_ABRT_SRC_MUX_QUIC << SE_ABRT_SRC_SHIFT); - qcs->sd->abort_info.code = err; - } + /* If not defined yet, set abort info for the sedesc */ + if (!qcs->sd->abort_info.info) { + qcs->sd->abort_info.info = (SE_ABRT_SRC_MUX_QUIC << SE_ABRT_SRC_SHIFT); + qcs->sd->abort_info.code = err; } /* RFC 9000 3.5. Solicited State Transitions