Skip to content

Commit

Permalink
Fixed TCP regression (issue #19)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielinux committed Sep 11, 2023
1 parent cded9fd commit 3f20ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/pico_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ static int tcp_parse_options(struct pico_frame *f)
uint32_t i = 0;
f->timestamp = 0;

if (f->buffer + f->buffer_len > f->transport_hdr + f->transport_len)
if (f->transport_hdr + f->transport_len > f->buffer + f->buffer_len)
return -1;

while (i < (f->transport_len - PICO_SIZE_TCPHDR)) {
Expand Down

0 comments on commit 3f20ba2

Please sign in to comment.