mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #12245 from nmeum/pr/gnrc_tcp_unknown_option
gnrc_tcp: abort on unknown option
This commit is contained in:
commit
1dcf88efb2
@ -63,6 +63,7 @@ int _option_parse(gnrc_tcp_tcb_t *tcb, tcp_hdr_t *hdr)
|
|||||||
default:
|
default:
|
||||||
DEBUG("gnrc_tcp_option.c : _option_parse() : Unknown option found.\
|
DEBUG("gnrc_tcp_option.c : _option_parse() : Unknown option found.\
|
||||||
KIND=%"PRIu8", LENGTH=%"PRIu8"\n", option->kind, option->length);
|
KIND=%"PRIu8", LENGTH=%"PRIu8"\n", option->kind, option->length);
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (option->length > opt_left) {
|
if (option->length > opt_left) {
|
||||||
|
Loading…
Reference in New Issue
Block a user