[network-manager-applet/NETWORKMANAGER_APPLET_0_7] fix crash with rapid connect/disconnect (bgo #588298)
- From: Dan Williams <dcbw src gnome org>
- To: svn-commits-list gnome org
- Subject: [network-manager-applet/NETWORKMANAGER_APPLET_0_7] fix crash with rapid connect/disconnect (bgo #588298)
- Date: Tue, 14 Jul 2009 19:59:20 +0000 (UTC)
commit 7f1fec11fe58bc6901117afc47aae079dbb8432f
Author: Dan Williams <dcbw redhat com>
Date: Tue Jul 14 15:54:19 2009 -0400
fix crash with rapid connect/disconnect (bgo #588298)
src/applet.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/applet.c b/src/applet.c
index 9fcb012..ed2c923 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -1027,6 +1027,9 @@ applet_find_active_connection_for_device (NMDevice *device,
service_name = nm_active_connection_get_service_name (active);
connection_path = nm_active_connection_get_connection (active);
+ if (!devices || !service_name || !connection_path)
+ continue;
+
if (!nm_g_ptr_array_contains (devices, device))
continue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]