mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 19:20:35 +01:00
core: don't return NULL from nm_ip[46]_config_capture()
Checking whether a connection is good enough is done by nm-device. Acked-by: Dan Winship <danw@gnome.org> Acked-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
5affa446aa
commit
7d37b714c8
2 changed files with 0 additions and 12 deletions
|
|
@ -116,12 +116,6 @@ nm_ip4_config_capture (int ifindex)
|
|||
priv->addresses = nm_platform_ip4_address_get_all (ifindex);
|
||||
priv->routes = nm_platform_ip4_route_get_all (ifindex, FALSE);
|
||||
|
||||
/* Require at least one IP address. */
|
||||
if (!priv->addresses->len) {
|
||||
g_object_unref (config);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return config;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -119,12 +119,6 @@ nm_ip6_config_capture (int ifindex)
|
|||
priv->addresses = nm_platform_ip6_address_get_all (ifindex);
|
||||
priv->routes = nm_platform_ip6_route_get_all (ifindex, FALSE);
|
||||
|
||||
/* Require at least one IP address. */
|
||||
if (!priv->addresses->len) {
|
||||
g_object_unref (config);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return config;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue