[riot-notifications] [RIOT] 6lowpan nd: fix null pointer handling in staling (#3840)

Cenk Gündoğan notifications at github.com
Wed Sep 16 23:43:56 CEST 2015


> @@ -57,13 +57,17 @@ static void _stale_nc(kernel_pid_t iface, ipv6_addr_t *ipaddr, uint8_t *l2addr,
>  #ifdef MODULE_GNRC_SIXLOWPAN_ND_ROUTER
>              /* tentative type see https://tools.ietf.org/html/rfc6775#section-6.3 */
>              gnrc_ipv6_netif_t *ipv6_iface = gnrc_ipv6_netif_get(iface);
> -            if ((ipv6_iface == NULL) || (ipv6_iface->flags & GNRC_IPV6_NETIF_FLAGS_ROUTER)) {
> +            if (ipv6_iface->flags &
> +                (GNRC_IPV6_NETIF_FLAGS_SIXLOWPAN | GNRC_IPV6_NETIF_FLAGS_ROUTER)) {

Yea, looks wrong somehow. My bad, I proposed this :/

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


More information about the notifications mailing list