Don't add an IP4 nameserver with an address of 0.0.0.0
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1942 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -216,7 +216,8 @@ void nm_ip4_config_add_nameserver (NMIP4Config *config, guint32 nameserver)
|
||||
{
|
||||
g_return_if_fail (config != NULL);
|
||||
|
||||
config->nameservers = g_slist_append (config->nameservers, GINT_TO_POINTER (nameserver));
|
||||
if (nameserver != 0)
|
||||
config->nameservers = g_slist_append (config->nameservers, GINT_TO_POINTER (nameserver));
|
||||
}
|
||||
|
||||
guint32 nm_ip4_config_get_nameserver (NMIP4Config *config, guint i)
|
||||
|
Reference in New Issue
Block a user