mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-14 09:39:22 +00:00
parent
efe78e7e5b
commit
b9ca1deba8
@ -1687,6 +1687,7 @@ tcp_receive(struct tcp_pcb *pcb)
|
|||||||
->ooseq. We check the lengths to see which one to
|
->ooseq. We check the lengths to see which one to
|
||||||
discard. */
|
discard. */
|
||||||
if (inseg.len > next->len) {
|
if (inseg.len > next->len) {
|
||||||
|
struct tcp_seg* cseg;
|
||||||
|
|
||||||
/* If next segment is the last segment in ooseq
|
/* If next segment is the last segment in ooseq
|
||||||
and smaller than inseg, that means it has been
|
and smaller than inseg, that means it has been
|
||||||
@ -1699,7 +1700,7 @@ tcp_receive(struct tcp_pcb *pcb)
|
|||||||
/* The incoming segment is larger than the old
|
/* The incoming segment is larger than the old
|
||||||
segment. We replace some segments with the new
|
segment. We replace some segments with the new
|
||||||
one. */
|
one. */
|
||||||
struct tcp_seg *cseg = tcp_seg_copy(&inseg);
|
cseg = tcp_seg_copy(&inseg);
|
||||||
if (cseg != NULL) {
|
if (cseg != NULL) {
|
||||||
if (prev != NULL) {
|
if (prev != NULL) {
|
||||||
prev->next = cseg;
|
prev->next = cseg;
|
||||||
|
Loading…
Reference in New Issue
Block a user