Fix segfault with assigning IPv6 address
[util-vserver-pl.git] / python / vserverimpl.c
index b9a06aa..b3e739c 100644 (file)
@@ -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;
   }