1
0
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:
Martine Lenders 2019-09-16 13:01:01 +02:00 committed by GitHub
commit 1dcf88efb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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