summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/ndp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ndp.c b/src/ndp.c
index 8378ebf..33dde87 100644
--- a/src/ndp.c
+++ b/src/ndp.c
@@ -335,7 +335,7 @@ static void check_addr_updates(struct interface *iface)
bool change = len != (ssize_t)iface->addr4_len;
for (ssize_t i = 0; !change && i < len; ++i)
- if (addr[i].addr.in.s_addr != iface->ia_addr[i].addr.in.s_addr)
+ if (addr[i].addr.in.s_addr != iface->addr4[i].addr.in.s_addr)
change = true;
free(iface->addr4);