summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2015-11-02 16:57:19 +0100
committerJiří Klimeš <jklimes@redhat.com>2015-11-09 17:36:50 +0100
commit4917838116176737fc9d6f355da295d8ba263f0d (patch)
tree25c42174b2dc562ec2a272526658b3e8882eaa65
parent106e2228520ed612b7198e6f7392ec5f2c2f883d (diff)
downloadNetworkManager-jk/ipv6-shared-SIGTRAP-rh1277171.tar.gz
device: don't assert in linklocal6_complete() on 'shared' method (rh #1277171)jk/ipv6-shared-SIGTRAP-rh1277171
NetworkManager would have terminated when Glib debugging was on. /etc/NetworkManager/NetworkManager.conf [main] debug=fatal-warnings https://bugzilla.redhat.com/show_bug.cgi?id=1277171
-rw-r--r--src/devices/nm-device.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 2676636ebb..a27fe53c94 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -4493,8 +4493,10 @@ linklocal6_complete (NMDevice *self)
}
} else if (strcmp (method, NM_SETTING_IP6_CONFIG_METHOD_LINK_LOCAL) == 0)
nm_device_activate_schedule_ip6_config_result (self);
+ else if (strcmp (method, NM_SETTING_IP6_CONFIG_METHOD_SHARED) == 0)
+ _LOGD (LOGD_DEVICE, "linklocal6_complete: 'shared' method is not supported for IPv6");
else
- g_return_if_fail (FALSE);
+ g_return_if_reached ();
}
static void