Skip to content

Commit

Permalink
Tools: hv: KVP: Fix a bug in IPV6 subnet enumeration
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kattisrinivasan authored and gregkh committed Jul 17, 2013
1 parent c5e2254 commit ed4bb97
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/hv/hv_kvp_daemon.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit ed4bb97

Please sign in to comment.