提交 ed4bb974 编写于 作者: K K. Y. Srinivasan 提交者: Greg Kroah-Hartman

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: NK. Y. Srinivasan <kys@microsoft.com>
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 c5e2254f
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册