aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2013-07-11 12:03:31 -0700
committerKamal Mostafa <kamal@canonical.com>2013-08-14 11:28:38 -0700
commitdb39850ef03dfdab4616b1ba170d1a192994023b (patch)
treee34b25a69ee3a0e39d310eb917c460e68baa4d24 /tools
parentd7c0f3d6edd9bf79403ac1e3b6e181c7370d4699 (diff)
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 <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Diffstat (limited to 'tools')
-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 d25a46925e61..f0e18109ab46 100644
--- a/tools/hv/hv_kvp_daemon.c
+++ b/tools/hv/hv_kvp_daemon.c
@@ -1012,9 +1012,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;
}