[gnome-control-center/gnome-3-8] network: allow an empty gateway address in the connection editor



commit 2cef35f3925fdae7bf85091b810c13e4e1910943
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Mon Feb 17 21:33:47 2014 +0100

    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 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 ccefae8..109e3ff 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;
                 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]