Fixed bug #33801 Corruption of nd6 tables

This commit is contained in:
Simon Goldschmidt 2011-07-19 21:56:19 +02:00
parent fb0ad2f9ea
commit 435ac2a650

View File

@ -1491,7 +1491,7 @@ nd6_get_next_hop_entry(ip6_addr_t * ip6addr, struct netif * netif)
i = nd6_new_neighbor_cache_entry(); i = nd6_new_neighbor_cache_entry();
if (i >= 0) { if (i >= 0) {
/* got new neighbor entry. make it our new cached index. */ /* got new neighbor entry. make it our new cached index. */
nd6_cached_destination_index = i; nd6_cached_neighbor_index = i;
} else { } else {
/* Could not create a neighbor cache entry. */ /* Could not create a neighbor cache entry. */
return ERR_MEM; return ERR_MEM;