From: Christian Brauner Date: Mon, 29 May 2017 12:36:36 +0000 (+0200) Subject: confile: config_network_ipv6_gateway() X-Git-Tag: lxc-1.0.11~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfe2145c6adee8717251da068589b80758d954f2;p=thirdparty%2Flxc.git confile: config_network_ipv6_gateway() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index accc12ece..eca9cf369 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -946,7 +946,7 @@ static int config_network_ipv6_gateway(const char *key, const char *value, free(netdev->ipv6_gateway); - if (!value || strlen(value) == 0) { + if (config_value_empty(value)) { netdev->ipv6_gateway = NULL; } else if (!strcmp(value, "auto")) { netdev->ipv6_gateway = NULL;