[riot-notifications] [RIOT] net/ng_netdev_eth: added missing NULL ptr check (#3238)

Oleg Hahm notifications at github.com
Tue Jun 30 13:59:00 CEST 2015


> @@ -396,7 +396,11 @@ static int _marshall_ethernet(ng_netdev_eth_t *dev, uint8_t *buffer, ng_pktsnip_
>          _addr_set_broadcast(hdr->dst);
>      }
>      else if (netif_hdr->flags & NG_NETIF_HDR_FLAGS_MULTICAST) {
> -        _addr_set_multicast(hdr->dst, payload);
> +        if (payload) {
> +            _addr_set_multicast(hdr->dst, payload);
> +        } else {

Style

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3238/files#r33564717
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150630/f75e8f57/attachment.html>


More information about the notifications mailing list