1
0
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:
Fabian Hüßler 2022-03-03 23:35:06 +01:00
parent f2d7a04c84
commit 6916f72419

View File

@ -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))) {