lb: fix memcpy error issue 51/22251/1
authorYulong Pei <[email protected]>
Fri, 23 Aug 2019 09:24:13 +0000 (17:24 +0800)
committerAndrew Yourtchenko <[email protected]>
Wed, 25 Sep 2019 06:48:00 +0000 (06:48 +0000)
commit7cd964ee45e845e0f02d9dbcecc3c1cc9088e447
tree27aeba75f9087c4fe341402b74de11e16f3ea2ea
parent54ff3fc834b9e97b77313501437260699e617e7c
lb: fix memcpy error issue

vl_api_prefix_t size is 21 byte, ip46_address_t size is 16 byte, only copy
16 byte of vl_api_prefix_t to ip46_address_t is not correct.

Type:fix

Change-Id: I35ede7836a0c878d39388b29b15d91bb08f87a07
Signed-off-by: Yulong Pei <[email protected]>
(cherry picked from commit 71f36067ca923fa4eb10060d6f6878f5fa864673)
src/plugins/lb/api.c