aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ip
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/ip')
-rw-r--r--src/vnet/ip/ip_types_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/ip/ip_types_api.c b/src/vnet/ip/ip_types_api.c
index 168e6150d19..6bc035ebef2 100644
--- a/src/vnet/ip/ip_types_api.c
+++ b/src/vnet/ip/ip_types_api.c
@@ -67,9 +67,9 @@ ip_address_union_encode (const ip46_address_t * in,
vl_api_address_union_t * out)
{
if (ADDRESS_IP6 == clib_net_to_host_u32 (af))
- memcpy (out->ip6, &in->ip6, sizeof (out->ip6));
+ memcpy (&out->ip6, &in->ip6, sizeof (out->ip6));
else
- memcpy (out->ip4, &in->ip4, sizeof (out->ip4));
+ memcpy (&out->ip4, &in->ip4, sizeof (out->ip4));
}
void