Fixed fail to build from source due to a bad "&nbr->lladdr" reference

This commit is contained in:
Gianfranco Costamagna 2013-08-28 11:39:11 +02:00
parent 0e66cad448
commit 2afea590f7

View file

@ -819,9 +819,10 @@ uip_nd6_ra_input(void)
if(nbr->state == NBR_INCOMPLETE) {
nbr->state = NBR_STALE;
}
uip_lladdr_t *lladdr = uip_ds6_nbr_get_ll(nbr);
if(memcmp(&nd6_opt_llao[UIP_ND6_OPT_DATA_OFFSET],
&nbr->lladdr, UIP_LLADDR_LEN) != 0) {
memcpy(&nbr->lladdr, &nd6_opt_llao[UIP_ND6_OPT_DATA_OFFSET],
lladdr, UIP_LLADDR_LEN) != 0) {
memcpy(lladdr, &nd6_opt_llao[UIP_ND6_OPT_DATA_OFFSET],
UIP_LLADDR_LEN);
nbr->state = NBR_STALE;
}