Skip to content

Commit

Permalink
Fix building with ISO C90
Browse files Browse the repository at this point in the history
This fixes the changes of commit 574bd6e
  • Loading branch information
goldsimon committed Oct 12, 2023
1 parent efe78e7 commit b9ca1de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/tcp_in.c
Original file line number Diff line number Diff line change
Expand Up @@ -1687,6 +1687,7 @@ tcp_receive(struct tcp_pcb *pcb)
->ooseq. We check the lengths to see which one to
discard. */
if (inseg.len > next->len) {
struct tcp_seg* cseg;

/* If next segment is the last segment in ooseq
and smaller than inseg, that means it has been
Expand All @@ -1699,7 +1700,7 @@ tcp_receive(struct tcp_pcb *pcb)
/* The incoming segment is larger than the old
segment. We replace some segments with the new
one. */
struct tcp_seg *cseg = tcp_seg_copy(&inseg);
cseg = tcp_seg_copy(&inseg);
if (cseg != NULL) {
if (prev != NULL) {
prev->next = cseg;
Expand Down

0 comments on commit b9ca1de

Please sign in to comment.