patch #2200 from Karl Jeacle, fixes tcp_output

This commit is contained in:
jani 2003-11-05 09:21:14 +00:00
parent 4c4fd7e408
commit 2e6d032691

View File

@ -363,7 +363,13 @@ tcp_output(struct tcp_pcb *pcb)
seg = pcb->unsent; seg = pcb->unsent;
useg = pcb->unacked;
/* useg should point to last segment on unacked queue */
useg = pcb->unacked;
if (useg != NULL) {
for (; useg->next != NULL; useg = useg->next);
}
/* If the TF_ACK_NOW flag is set, we check if there is data that is /* If the TF_ACK_NOW flag is set, we check if there is data that is
to be sent. If data is to be sent out, we'll just piggyback our to be sent. If data is to be sent out, we'll just piggyback our