fix the code that should have been written
But never was...
@@ -2735,7 +2735,8 @@ protoop_arg_t prepare_packet_ready(picoquic_cnx_t *cnx)
/* FIXME: Sorry, I'm lazy, this could be easily fixed by making this a PO.
* This is needed by the way the cwin is now handled. */
- if (picoquic_prepare_ack_frame(cnx, current_time, pc, &bytes[length],
+ if (path_x == cnx->path[0] &&
+ picoquic_prepare_ack_frame(cnx, current_time, pc, &bytes[length],
send_buffer_min_max - checksum_overhead - length, &data_bytes)
== 0) {
length += (uint32_t)data_bytes;
