drivers/sx127x: fix length check of netstat_opt_tin _set

This commit is contained in:
Gunar Schorcht 2020-03-08 17:09:21 +01:00
parent 32c78e3317
commit 3adbbdcf9b

View File

@ -351,7 +351,7 @@ static int _set(netdev_t *netdev, netopt_t opt, const void *val, size_t len)
switch(opt) {
case NETOPT_STATE:
assert(len <= sizeof(netopt_state_t));
assert(len == sizeof(netopt_state_t));
return _set_state(dev, *((const netopt_state_t*) val));
case NETOPT_DEVICE_TYPE: