Remove return statement in h3_rcv_buf() in case of stream/connection
error. Instead, reuse already existing label err. This simplifies the
code path. It also fixes the missing leave trace for these cases.
if (h3s->err) {
qcc_abort_stream_read(qcs);
qcc_reset_stream(qcs, h3s->err);
- return b_data(b);
+ total = b_data(b);
+ goto done;
}
else if (h3c->err) {
qcc_set_error(qcs->qcc, h3c->err, 1);
- return b_data(b);
+ total = b_data(b);
+ goto done;
}
else if (unlikely(ret < 0)) {
qcc_set_error(qcs->qcc, H3_ERR_INTERNAL_ERROR, 1);