Blame SOURCES/0004-agent-Assert-possible-infinite-loop.patch

8866cd
From 67e5477687a2753d3f7b300bcfdc74464d8ad41f Mon Sep 17 00:00:00 2001
8866cd
From: Bastien Nocera <hadess@hadess.net>
8866cd
Date: Mon, 9 Dec 2013 18:04:56 +0100
8866cd
Subject: [PATCH 4/5] agent: Assert possible infinite loop
8866cd
8866cd
---
8866cd
 src/agent.c | 2 ++
8866cd
 1 file changed, 2 insertions(+)
8866cd
8866cd
diff --git a/src/agent.c b/src/agent.c
8866cd
index bcba969..b292881 100644
8866cd
--- a/src/agent.c
8866cd
+++ b/src/agent.c
8866cd
@@ -203,6 +203,8 @@ void agent_unref(struct agent *agent)
8866cd
 	if (agent->ref > 0)
8866cd
 		return;
8866cd
 
8866cd
+	g_assert (agent->ref == 0);
8866cd
+
8866cd
 	if (agent->request) {
8866cd
 		DBusError err;
8866cd
 		agent_pincode_cb pincode_cb;
8866cd
-- 
8866cd
1.8.4.2
8866cd