1
0
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:
Felix 2022-10-07 11:41:10 +02:00 committed by Martine Lenders
parent 0bec3e245e
commit 17c70f7ee0
No known key found for this signature in database
GPG Key ID: 2134D77A5336DD80

View File

@ -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;
}