gnrc_ipv6_nib: return registration state on upstream registration

The function `_update_nce_ar_state()` was introduced during the review
of \#7424, but it's return value never used, causing faulty behavior.
This commit is contained in:
Martine Lenders 2017-10-10 11:06:15 +02:00
parent 8d941d59ea
commit eb76e8034d
No known key found for this signature in database
GPG Key ID: 8E97A9FE55F25D62

View File

@ -68,7 +68,7 @@ uint8_t _reg_addr_upstream(kernel_pid_t iface, const ipv6_hdr_t *ipv6,
#endif #endif
if (byteorder_ntohs(aro->ltime) != 0) { if (byteorder_ntohs(aro->ltime) != 0) {
_handle_sl2ao(iface, ipv6, icmpv6, sl2ao); _handle_sl2ao(iface, ipv6, icmpv6, sl2ao);
_update_nce_ar_state(aro, nce); return _update_nce_ar_state(aro, nce);
} }
else if (nce != NULL) { else if (nce != NULL) {
_nib_nc_remove(nce); _nib_nc_remove(nce);