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>
This commit is contained in:
K. Y. Srinivasan 2013-07-11 12:03:31 -07:00 committed by Greg Kroah-Hartman
parent ce4eb5e3ed
commit 0ac7e44316
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}