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 f824355..aced2c0 100644
--- a/src/dhcpv6-ia.c
+++ b/src/dhcpv6-ia.c
@@ -414,7 +414,7 @@ static void update(struct relayd_interface *iface)
        border->assigned = 1 << (64 - minprefix);
 
        bool change = len != (int)iface->pd_addr_len
-                       || memcmp(iface->pd_addr, addr, len * sizeof(*border));
+                       || memcmp(iface->pd_addr, addr, len * sizeof(*addr));
 
        if (change) {
                struct assignment *c;
-- 
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