1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

Merge pull request #6174 from cgundogan/pr/netdev2_tap/assert_to_if

netdev2_tap: assert address len >= ETHERNET_ADDR_LEN
This commit is contained in:
Martine Lenders 2017-01-12 22:28:56 +01:00 committed by GitHub
commit 72a3e7e6e1

View File

@ -147,7 +147,7 @@ static int _set(netdev2_t *dev, netopt_t opt, void *value, size_t value_len)
switch (opt) {
case NETOPT_ADDRESS:
assert(value_len==ETHERNET_ADDR_LEN);
assert(value_len >= ETHERNET_ADDR_LEN);
_set_mac_addr(dev, (uint8_t*)value);
break;
case NETOPT_PROMISCUOUSMODE: