Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gnrc_sixlowpan: Various hardening fixes [backport 2022.10] #18820

Merged
gnrc_netif_ieee802154: Ignore packets without source address
(cherry picked from commit 17c70f7)
  • Loading branch information
Diff-fusion authored and miri64 committed Oct 29, 2022
commit 4b23d93868a28edd8ebf2ff4ebe94540f2475008
2 changes: 1 addition & 1 deletion sys/net/gnrc/netif/ieee802154/gnrc_netif_ieee802154.c
Expand Up @@ -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;
}
Expand Down