mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 05:10:40 +00:00
Fix minor patch #5741 build error...
This commit is contained in:
parent
4ac0580aa0
commit
a2dffd430b
@ -1116,10 +1116,10 @@ tcp_receive(struct tcp_pcb *pcb)
|
|||||||
tcp_seg_free(next);
|
tcp_seg_free(next);
|
||||||
if (cseg->next != NULL) {
|
if (cseg->next != NULL) {
|
||||||
next = cseg->next;
|
next = cseg->next;
|
||||||
if (TCP_SEQ_GT(seqno + cseg.len, next->tcphdr->seqno)) {
|
if (TCP_SEQ_GT(seqno + cseg->len, next->tcphdr->seqno)) {
|
||||||
/* We need to trim the incoming segment. */
|
/* We need to trim the incoming segment. */
|
||||||
cseg.len = next->tcphdr->seqno - seqno;
|
cseg->len = next->tcphdr->seqno - seqno;
|
||||||
pbuf_realloc(cseg.p, cseg.len);
|
pbuf_realloc(cseg->p, cseg->len);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user