From 5355c11834f187f731a46bec40f5f0521c64963b Mon Sep 17 00:00:00 2001 From: zhangzujian Date: Sat, 20 Jan 2024 05:28:21 +0000 Subject: [PATCH] fixes Signed-off-by: zhangzujian --- lib/netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netdev.c b/lib/netdev.c index 74d3bde6488..d6a6bddcdde 100644 --- a/lib/netdev.c +++ b/lib/netdev.c @@ -2403,7 +2403,7 @@ netdev_get_addrs(const int ifindex, struct in6_addr **paddr, mask_array = xmalloc(size); if (list) { memcpy(addr_array, list->addr_array, size); - memcpy(mask_array, list->addr_array, size); + memcpy(mask_array, list->mask_array, size); } ovs_mutex_unlock(&if_addr_list_lock); if (paddr) {