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

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