From 41b33dc839e00971e5e27001975f3b3bb18519a3 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Mon, 17 Feb 2014 21:33:47 +0100 Subject: [PATCH] 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 --- panels/network/connection-editor/ce-page-ip4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/network/connection-editor/ce-page-ip4.c b/panels/network/connection-editor/ce-page-ip4.c index b73a6b363..63e077937 100644 --- a/panels/network/connection-editor/ce-page-ip4.c +++ b/panels/network/connection-editor/ce-page-ip4.c @@ -756,7 +756,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; }