From eb76e8034d1aa52665be23200ee6db4159df29eb Mon Sep 17 00:00:00 2001
From: Martine Lenders <m.lenders@fu-berlin.de>
Date: Tue, 10 Oct 2017 11:06:15 +0200
Subject: [PATCH] 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.
---
 sys/net/gnrc/network_layer/ipv6/nib/_nib-6lr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/net/gnrc/network_layer/ipv6/nib/_nib-6lr.c b/sys/net/gnrc/network_layer/ipv6/nib/_nib-6lr.c
index 8a7614f370..b85ed57558 100644
--- a/sys/net/gnrc/network_layer/ipv6/nib/_nib-6lr.c
+++ b/sys/net/gnrc/network_layer/ipv6/nib/_nib-6lr.c
@@ -68,7 +68,7 @@ uint8_t _reg_addr_upstream(kernel_pid_t iface, const ipv6_hdr_t *ipv6,
 #endif
             if (byteorder_ntohs(aro->ltime) != 0) {
                 _handle_sl2ao(iface, ipv6, icmpv6, sl2ao);
-                _update_nce_ar_state(aro, nce);
+                return _update_nce_ar_state(aro, nce);
             }
             else if (nce != NULL) {
                 _nib_nc_remove(nce);
-- 
GitLab