Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

K. Y. Srinivasan and committed by
Greg Kroah-Hartman
ed4bb974 c5e2254f

+3 -2
+3 -2
tools/hv/hv_kvp_daemon.c
··· 1026 1026 1027 1027 if (sn_offset == 0) 1028 1028 strcpy(sn_str, cidr_mask); 1029 - else 1029 + else { 1030 + strcat((char *)ip_buffer->sub_net, ";"); 1030 1031 strcat(sn_str, cidr_mask); 1031 - strcat((char *)ip_buffer->sub_net, ";"); 1032 + } 1032 1033 sn_offset += strlen(sn_str) + 1; 1033 1034 } 1034 1035