Unverified Commit 355a2836 by Christian Brauner Committed by Stéphane Graber

confile: config_network_ipv4_gateway()

parent 9ecce5ce
...@@ -845,7 +845,7 @@ static int config_network_ipv4_gateway(const char *key, const char *value, ...@@ -845,7 +845,7 @@ static int config_network_ipv4_gateway(const char *key, const char *value,
free(netdev->ipv4_gateway); free(netdev->ipv4_gateway);
if (!value || strlen(value) == 0) { if (config_value_empty(value)) {
netdev->ipv4_gateway = NULL; netdev->ipv4_gateway = NULL;
} else if (!strcmp(value, "auto")) { } else if (!strcmp(value, "auto")) {
netdev->ipv4_gateway = NULL; netdev->ipv4_gateway = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment