diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-08-16 11:55:39 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-08-16 13:41:36 +0200 |
commit | 94e65ee0aecf0749e64fb29b4532c614e7be86a8 (patch) | |
tree | 6387630cf4f2dc5e3169bf75c5a5efd051f98c23 /src | |
parent | ff5020d9c0474c6a76ee30e499983a4d3a9f27b7 (diff) |
ndp: use IPv4 address list when comparing IPv4 addresses
Use IPv4 address list in check_addr_updates which fixes possible segfault
as IPv6 address list was used by mistake.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/ndp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |