mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
gnrc_sixlowpan_nd: fix 6ctx option check
This commit is contained in:
parent
f93b58989d
commit
542c1e82ac
@ -372,8 +372,8 @@ uint8_t gnrc_sixlowpan_nd_opt_ar_handle(kernel_pid_t iface, ipv6_hdr_t *ipv6,
|
||||
|
||||
bool gnrc_sixlowpan_nd_opt_6ctx_handle(uint8_t icmpv6_type, sixlowpan_nd_opt_6ctx_t *ctx_opt)
|
||||
{
|
||||
if (((ctx_opt->ctx_len < 64) && (ctx_opt->len != 2)) ||
|
||||
((ctx_opt->ctx_len >= 64) && (ctx_opt->len != 3))) {
|
||||
if (((ctx_opt->ctx_len <= 64) && (ctx_opt->len != 2)) ||
|
||||
((ctx_opt->ctx_len > 64) && (ctx_opt->len != 3))) {
|
||||
DEBUG("6lo nd: invalid 6LoWPAN context option received\n");
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user