From: K. Y. Srinivasan Date: Thu, 11 Jul 2013 19:03:31 +0000 (-0700) Subject: Tools: hv: KVP: Fix a bug in IPV6 subnet enumeration X-Git-Tag: firefly_0821_release~6453^2~1280 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0ac7e44316a38c618afb851e05e0b71d8c83fef7;p=firefly-linux-kernel-4.4.55.git Tools: hv: KVP: Fix a bug in IPV6 subnet enumeration commit ed4bb9744b41d39ba35080c2390e201575121dc7 upstream. Each subnet string needs to be separated with a semicolon. Fix this bug. Signed-off-by: K. Y. Srinivasan Signed-off-by: Greg Kroah-Hartman --- diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c index 5a1f6489d185..274e17867a3a 100644 --- a/tools/hv/hv_kvp_daemon.c +++ b/tools/hv/hv_kvp_daemon.c @@ -1016,9 +1016,10 @@ kvp_get_ip_info(int family, char *if_name, int op, if (sn_offset == 0) strcpy(sn_str, cidr_mask); - else + else { + strcat((char *)ip_buffer->sub_net, ";"); strcat(sn_str, cidr_mask); - strcat((char *)ip_buffer->sub_net, ";"); + } sn_offset += strlen(sn_str) + 1; }