1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

net/ng_nomac: added missing return in event cb

This commit is contained in:
Hauke Petersen 2015-03-25 23:12:19 +01:00
parent ad69413d22
commit 264f05bc62

View File

@ -49,6 +49,7 @@ static void _event_cb(ng_netdev_event_t event, void *data)
if (sendto == NULL) {
DEBUG("nomac: unable to forward packet of type %i\n", pkt->type);
ng_pktbuf_release(pkt);
return;
}
/* send the packet to everyone interested in it's type */
ng_pktbuf_hold(pkt, ng_netreg_num(pkt->type, NG_NETREG_DEMUX_CTX_ALL) - 1);