Skip to content

Commit

Permalink
Merge pull request #12245 from nmeum/pr/gnrc_tcp_unknown_option
Browse files Browse the repository at this point in the history
gnrc_tcp: abort on unknown option
  • Loading branch information
miri64 authored Sep 16, 2019
2 parents 56e6887 + 9764697 commit 1dcf88e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/net/gnrc/transport_layer/tcp/gnrc_tcp_option.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ int _option_parse(gnrc_tcp_tcb_t *tcb, tcp_hdr_t *hdr)
default:
DEBUG("gnrc_tcp_option.c : _option_parse() : Unknown option found.\
KIND=%"PRIu8", LENGTH=%"PRIu8"\n", option->kind, option->length);
return -1;
}

if (option->length > opt_left) {
Expand Down

0 comments on commit 1dcf88e

Please sign in to comment.