From ced8e4629f11345f020ffbe04bf08f61515de53a Mon Sep 17 00:00:00 2001 From: Andrew Bavier Date: Fri, 27 Apr 2012 17:56:31 -0400 Subject: [PATCH] Fix segfault with assigning IPv6 address --- python/vserverimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/vserverimpl.c b/python/vserverimpl.c index b9a06aa..b3e739c 100644 --- 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; } -- 2.43.0