Signed-off-by: Nathan Hintz <nlhi...@hotmail.com>
---
 src/dhcpv6-ia.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c
index e5fefea..f824355 100644
--- a/src/dhcpv6-ia.c
+++ b/src/dhcpv6-ia.c
@@ -388,7 +388,7 @@ static void update(struct relayd_interface *iface)
        memset(addr, 0, sizeof(addr));
        int len = relayd_get_interface_addresses(iface->ifindex, addr, 8);
 
-       if (len < 0)
+       if (len < 1)
                return;
 
        qsort(addr, len, sizeof(*addr), prefixcmp);
-- 
1.8.3.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to