git://git.onelab.eu
/
util-vserver-pl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37af1fb
)
Fix segfault with assigning IPv6 address
author
Andrew Bavier
<acb@new-host-2.home>
Fri, 27 Apr 2012 21:56:31 +0000
(17:56 -0400)
committer
Andrew Bavier
<acb@new-host-2.home>
Fri, 27 Apr 2012 21:56:31 +0000
(17:56 -0400)
python/vserverimpl.c
patch
|
blob
|
history
diff --git
a/python/vserverimpl.c
b/python/vserverimpl.c
index
b9a06aa
..
b3e739c
100644
(file)
--- a/
python/vserverimpl.c
+++ b/
python/vserverimpl.c
@@
-449,7
+449,7
@@
static inline int
convert_address(const char *str, struct vc_net_addr *addr)
{
void *dst;
- if (inet_pton(AF_INET6, str, addr->vna_v6_ip.s6_addr) > 0) {
+ if (inet_pton(AF_INET6, str,
&
addr->vna_v6_ip.s6_addr) > 0) {
addr->vna_type = VC_NXA_TYPE_IPV6;
return 0;
}