From 9764697a3b21ea4c7c0d33ce4e3a83d2da620a1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Mon, 16 Sep 2019 12:07:55 +0200 Subject: [PATCH] gnrc_tcp: abort on unknown option --- sys/net/gnrc/transport_layer/tcp/gnrc_tcp_option.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_option.c b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_option.c index 14b4ae25d7a9..340b92abb9ec 100644 --- a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_option.c +++ b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_option.c @@ -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) {