[gnome-control-center] network: allow an empty gateway address in the connection editor
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: allow an empty gateway address in the connection editor
- Date: Tue, 18 Feb 2014 08:48:47 +0000 (UTC)
commit 41b33dc839e00971e5e27001975f3b3bb18519a3
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 b73a6b3..63e0779 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]