From: Serge Hallyn Date: Fri, 23 Aug 2013 17:45:15 +0000 (-0500) Subject: config_ipv6: run inet_pton on the addr value without mask X-Git-Tag: lxc-1.0.0.alpha1~1^2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5acccf95b2bd1e5ffedf687e527dcad5a54d4c1e;p=thirdparty%2Flxc.git config_ipv6: run inet_pton on the addr value without mask otherwise a "$addr/$mask" results in failure. Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index f44835bb7..57797adc1 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -759,8 +759,8 @@ static int config_network_ipv6(const char *key, const char *value, inet6dev->prefix = atoi(netmask); } - if (!inet_pton(AF_INET6, value, &inet6dev->addr)) { - SYSERROR("invalid ipv6 address: %s", value); + if (!inet_pton(AF_INET6, valdup, &inet6dev->addr)) { + SYSERROR("invalid ipv6 address: %s", valdup); free(list); free(inet6dev); free(valdup);