diff options
author | 2016-01-05 20:37:08 +0000 | |
---|---|---|
committer | 2016-01-05 20:37:08 +0000 | |
commit | ec1a579f388a5bac307e8444fc9d9b342f28d235 (patch) | |
tree | 3c86eafea6aa83be0eb3fde3594b0c974c9c5b43 | |
parent | 92be0df475f3165ef0d82da35250c77a223f2954 (diff) | |
parent | 4afb281d8d7dd2eed4271c8cb2fc3bc51690cee8 (diff) |
Merge "Warning be gone."
-rw-r--r-- | vpp-japi/japi/vppjni.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vpp-japi/japi/vppjni.c b/vpp-japi/japi/vppjni.c index 5747d9aa..6e4d6ee5 100644 --- a/vpp-japi/japi/vppjni.c +++ b/vpp-japi/japi/vppjni.c @@ -1556,7 +1556,7 @@ static void vl_api_ip_address_details_t_handler (vl_api_ip_address_details_t * m if (!jm->is_ipv6) { ipv4_address_t *address = 0; vec_add2(jm->ipv4_addresses, address, 1); - address->ip = *(u32*)mp->ip; + memcpy(&address->ip, mp->ip, 4); address->prefix_length = mp->prefix_length; } else { ipv6_address_t *address = 0; |