summaryrefslogtreecommitdiffstats
path: root/tools/hv
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2013-07-11 12:03:31 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-16 23:19:19 -0700
commited4bb9744b41d39ba35080c2390e201575121dc7 (patch)
treee0175c5cdde7a7e2441d991cf59be436926a2756 /tools/hv
parentc5e2254f8d63a6654149aa32ac5f2b7dd66a976d (diff)
downloadop-kernel-dev-ed4bb9744b41d39ba35080c2390e201575121dc7.zip
op-kernel-dev-ed4bb9744b41d39ba35080c2390e201575121dc7.tar.gz
Tools: hv: KVP: Fix a bug in IPV6 subnet enumeration
Each subnet string needs to be separated with a semicolon. Fix this bug. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Cc: Stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/hv')
-rw-r--r--tools/hv/hv_kvp_daemon.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c
index ca9fa4d..07819bf 100644
--- a/tools/hv/hv_kvp_daemon.c
+++ b/tools/hv/hv_kvp_daemon.c
@@ -1026,9 +1026,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;
}
OpenPOWER on IntegriCloud