Merge pull request #14961 from miri64/gnrc_rpl/fix/check-idx

gnrc_rpl: check index after fetching address from netif
This commit is contained in:
benpicco 2020-09-07 14:24:44 +02:00 committed by GitHub
commit c7993b6140
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -997,6 +997,10 @@ void gnrc_rpl_send_DAO(gnrc_rpl_instance_t *inst, ipv6_addr_t *destination, uint
return;
}
idx = gnrc_netif_ipv6_addr_match(netif, &dodag->dodag_id);
if (idx < 0) {
DEBUG("RPL: no address matching DODAG ID found\n");
return;
}
me = &netif->ipv6.addrs[idx];
/* add external and RPL FT entries */