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

Oleg Hahm notifications at github.com
Mon Sep 14 22:50:04 CEST 2015


> @@ -59,8 +59,10 @@ static void _stale_nc(kernel_pid_t iface, ipv6_addr_t *ipaddr, uint8_t *l2addr,
>              gnrc_ipv6_netif_t *ipv6_iface = gnrc_ipv6_netif_get(iface);
>              if ((ipv6_iface == NULL) || (ipv6_iface->flags & GNRC_IPV6_NETIF_FLAGS_ROUTER)) {
>                  timex_t t = { GNRC_SIXLOWPAN_ND_TENTATIVE_NCE_LIFETIME, 0 };
> -                gnrc_ipv6_nc_add(iface, ipaddr, l2addr, (uint16_t)l2addr_len,
> -                                 GNRC_IPV6_NC_STATE_STALE | GNRC_IPV6_NC_TYPE_TENTATIVE);
> +                nc_entry = gnrc_ipv6_nc_add(iface, ipaddr, l2addr,

good idea - will do

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


More information about the notifications mailing list