mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ipv6/nib: fix memcpy() bug in _handle_rtr_timeout
This commit is contained in:
parent
f2d7a04c84
commit
6916f72419
@ -1376,9 +1376,8 @@ static void _handle_rtr_timeout(_nib_dr_entry_t *router)
|
||||
if ((router->next_hop != NULL) && (router->next_hop->mode & _DRL)) {
|
||||
_nib_offl_entry_t *route = NULL;
|
||||
unsigned iface = _nib_onl_get_if(router->next_hop);
|
||||
ipv6_addr_t addr;
|
||||
ipv6_addr_t addr = router->next_hop->ipv6;
|
||||
|
||||
memcpy(&addr, &router->next_hop, sizeof(addr));
|
||||
_nib_drl_remove(router);
|
||||
/* also remove all routes to that router */
|
||||
while ((route = _nib_offl_iter(route))) {
|
||||
|
Loading…
Reference in New Issue
Block a user