mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc_netif_ieee802154: Ignore packets without source address
This commit is contained in:
parent
0bec3e245e
commit
17c70f7ee0
@ -54,7 +54,7 @@ static gnrc_pktsnip_t *_make_netif_hdr(uint8_t *mhr)
|
||||
|
||||
dst_len = ieee802154_get_dst(mhr, dst, &_pan_tmp);
|
||||
src_len = ieee802154_get_src(mhr, src, &_pan_tmp);
|
||||
if ((dst_len < 0) || (src_len < 0)) {
|
||||
if ((dst_len < 0) || (src_len <= 0)) {
|
||||
DEBUG("_make_netif_hdr: unable to get addresses\n");
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user