diff options
-rw-r--r-- | src/netlink.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/netlink.c b/src/netlink.c index c672748..c3536e7 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -212,7 +212,9 @@ static void refresh_iface_addr6(int ifindex) } if (!change) { - free(addr); + free(iface->addr6); + iface->addr6 = addr; + iface->addr6_len = len; return; } |