MINOR: quic: Retry on qc_build_pkt() failures

This is done going to stop_build label when qc_build_pkt() fails
because of a lack of buffer room (returns -1).
This commit is contained in:
Frédéric Lécaille 2022-02-28 16:55:32 +01:00 committed by Amaury Denoyelle
parent 43a568575f
commit 05e30ee7d5

View File

@ -2676,11 +2676,9 @@ static int qc_prep_pkts(struct quic_conn *qc, struct qring *qr,
/* If there was already a correct packet present, set the
* current datagram as prepared into <cbuf>.
*/
if (prv_pkt) {
if (prv_pkt)
qc_set_dg(cbuf, dglen, first_pkt);
goto stop_build;
}
goto out;
goto stop_build;
default:
break;
}