summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2015-07-21 23:07:34 +0200
committerThomas Haller <thaller@redhat.com>2015-07-22 14:50:51 +0200
commit2958b3d1afc6c23757893837b0b4353df889794d (patch)
tree1b7512102d12d07281094dfa5096a6c47740eff1
parent89b630ff32f9111b3ed518c413b576adbf746e78 (diff)
downloadNetworkManager-2958b3d1afc6c23757893837b0b4353df889794d.tar.gz
libnm-core: 0.0.0.0 is a valid gateway too
It makes sense for point-to point links. https://bugzilla.redhat.com/show_bug.cgi?id=1244483 (cherry picked from commit f14fd048ff84794f72892a1fe0209d56552b0e6e)
-rw-r--r--libnm-core/nm-setting-ip-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm-core/nm-setting-ip-config.c b/libnm-core/nm-setting-ip-config.c
index 2e8d0c8ea4..d637b5ea2f 100644
--- a/libnm-core/nm-setting-ip-config.c
+++ b/libnm-core/nm-setting-ip-config.c
@@ -2017,7 +2017,7 @@ set_property (GObject *object, guint prop_id,
gateway = g_value_get_string (value);
g_return_if_fail (!gateway || nm_utils_ipaddr_valid (NM_SETTING_IP_CONFIG_GET_FAMILY (setting), gateway));
g_free (priv->gateway);
- priv->gateway = canonicalize_ip (NM_SETTING_IP_CONFIG_GET_FAMILY (setting), gateway, TRUE);
+ priv->gateway = canonicalize_ip (NM_SETTING_IP_CONFIG_GET_FAMILY (setting), gateway, gateway == NULL);
break;
case PROP_ROUTES:
g_ptr_array_unref (priv->routes);