core: downgrade assertion in nm-ip[46]-config.c to g_critical

This commit is contained in:
Thomas Haller 2016-08-19 14:46:52 +02:00
parent ed7f832c40
commit c5682d601b
2 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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);