[PATCH] libnm: Check the priv pointer before loop traverse.
- From: "Shih-Yuan Lee (FourDollars)" <sylee canonical com>
- To: networkmanager-list gnome org
- Subject: [PATCH] libnm: Check the priv pointer before loop traverse.
- Date: Wed, 4 May 2016 16:09:02 +0800
---
libnm/nm-manager.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libnm/nm-manager.c b/libnm/nm-manager.c
index a6c1f3f..9316fdb 100644
--- a/libnm/nm-manager.c
+++ b/libnm/nm-manager.c
@@ -816,6 +816,8 @@ recheck_pending_activations (NMManager *self)
const GPtrArray *devices;
NMDevice *device;
+ g_return_if_fail (priv);
+
/* For each pending activation, look for an active connection that has the
* pending activation's object path, where the active connection and its
* device have both updated their properties to point to each other, and
--
2.7.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]