[network-manager-applet] 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] fix crash with rapid connect/disconnect (bgo #588298)
- Date: Tue, 14 Jul 2009 20:00:59 +0000 (UTC)
commit ba5e669582eba7c49f1dd5de17edbab7254c1cd8
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 d35abcb..9cf9735 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -1040,6 +1040,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]