mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 19:40:19 +01:00
core: downgrade assertion in nm-ip[46]-config.c to g_critical
This commit is contained in:
parent
ed7f832c40
commit
c5682d601b
2 changed files with 4 additions and 4 deletions
|
|
@ -1614,7 +1614,7 @@ nm_ip4_config_add_route (NMIP4Config *config, const NMPlatformIP4Route *new)
|
|||
|
||||
g_return_if_fail (new != NULL);
|
||||
g_return_if_fail (new->plen > 0 && new->plen <= 32);
|
||||
g_assert (priv->ifindex);
|
||||
g_return_if_fail (priv->ifindex > 0);
|
||||
|
||||
for (i = 0; i < priv->routes->len; i++ ) {
|
||||
NMPlatformIP4Route *item = &g_array_index (priv->routes, NMPlatformIP4Route, i);
|
||||
|
|
@ -2293,7 +2293,7 @@ finalize (GObject *object)
|
|||
|
||||
static void
|
||||
get_property (GObject *object, guint prop_id,
|
||||
GValue *value, GParamSpec *pspec)
|
||||
GValue *value, GParamSpec *pspec)
|
||||
{
|
||||
NMIP4Config *config = NM_IP4_CONFIG (object);
|
||||
NMIP4ConfigPrivate *priv = NM_IP4_CONFIG_GET_PRIVATE (config);
|
||||
|
|
|
|||
|
|
@ -1487,7 +1487,7 @@ nm_ip6_config_add_route (NMIP6Config *config, const NMPlatformIP6Route *new)
|
|||
|
||||
g_return_if_fail (new != NULL);
|
||||
g_return_if_fail (new->plen > 0 && new->plen <= 128);
|
||||
g_assert (priv->ifindex);
|
||||
g_return_if_fail (priv->ifindex > 0);
|
||||
|
||||
for (i = 0; i < priv->routes->len; i++ ) {
|
||||
NMPlatformIP6Route *item = &g_array_index (priv->routes, NMPlatformIP6Route, i);
|
||||
|
|
@ -2037,7 +2037,7 @@ nameservers_to_gvalue (GArray *array, GValue *value)
|
|||
|
||||
static void
|
||||
get_property (GObject *object, guint prop_id,
|
||||
GValue *value, GParamSpec *pspec)
|
||||
GValue *value, GParamSpec *pspec)
|
||||
{
|
||||
NMIP6Config *config = NM_IP6_CONFIG (object);
|
||||
NMIP6ConfigPrivate *priv = NM_IP6_CONFIG_GET_PRIVATE (config);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue