[gnome-control-center/gnome-3-10] 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/gnome-3-10] network: allow an empty gateway address in the connection editor
- Date: Wed, 19 Feb 2014 09:04:03 +0000 (UTC)
commit 9468c1b61a6ec4430ca9a7fcd32daa18d151dee3
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 e580225..ab0f971 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]