OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5e2254
)
Tools: hv: KVP: Fix a bug in IPV6 subnet enumeration
author
K. Y. Srinivasan
<kys@microsoft.com>
Thu, 11 Jul 2013 19:03:31 +0000
(12:03 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 17 Jul 2013 06:19:19 +0000
(23:19 -0700)
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>
tools/hv/hv_kvp_daemon.c
patch
|
blob
|
history
diff --git
a/tools/hv/hv_kvp_daemon.c
b/tools/hv/hv_kvp_daemon.c
index
ca9fa4d
..
07819bf
100644
(file)
--- a/
tools/hv/hv_kvp_daemon.c
+++ b/
tools/hv/hv_kvp_daemon.c
@@
-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;
}