git://git.onelab.eu
/
util-vserver-pl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix segfault with assigning IPv6 address
[util-vserver-pl.git]
/
python
/
vserverimpl.c
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;
}