]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: config_network_ipv6_gateway()
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 29 May 2017 12:36:36 +0000 (14:36 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 15 Aug 2017 21:32:44 +0000 (17:32 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index accc12ece0921530bf977e3de5ea1ac968210ad9..eca9cf3694429bf4889cc36f235b21c88b71afaa 100644 (file)
@@ -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;