1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

gnrc_tcp: abort on unknown option

This commit is contained in:
Sören Tempel 2019-09-16 12:07:55 +02:00
parent e8b08d304f
commit 9764697a3b

View File

@ -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) {