summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagna@src.gnome.org>2014-02-17 21:33:47 +0100
committerBastien Nocera <hadess@hadess.net>2014-02-19 09:59:44 +0100
commit2cef35f3925fdae7bf85091b810c13e4e1910943 (patch)
treeda77236c9cd83ccb9465eebd961128dc46cecbf2
parent14ef6f6e18e0d84c9ac859b49210221103b55ca6 (diff)
downloadgnome-control-center-2cef35f3925fdae7bf85091b810c13e4e1910943.tar.gz
network: allow an empty gateway address in the connection editor
It appears that this has always been the intention of the code, but the check was incomplete. https://bugzilla.gnome.org/show_bug.cgi?id=724312
-rw-r--r--panels/network/connection-editor/ce-page-ip4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/panels/network/connection-editor/ce-page-ip4.c b/panels/network/connection-editor/ce-page-ip4.c
index ccefae8ee..109e3ff36 100644
--- a/panels/network/connection-editor/ce-page-ip4.c
+++ b/panels/network/connection-editor/ce-page-ip4.c
@@ -740,7 +740,7 @@ ui_to_setting (CEPageIP4 *page)
goto out;
}
- if (text_gateway && inet_pton (AF_INET, text_gateway, &tmp_gateway) <= 0) {
+ if (text_gateway && *text_gateway && inet_pton (AF_INET, text_gateway, &tmp_gateway) <= 0) {
goto out;
}