Subject: [PATCH 4/5] agent: Assert possible infinite loop
From: Bastien Nocera <[email-masked]>
Date: Mon, 9 Dec 2013 18:04:56 +0100

---
 src/agent.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/agent.c b/src/agent.c
index 7d66cf5..beec3c8 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -205,6 +205,8 @@ void agent_unref(struct agent *agent)
 	if (agent->ref > 0)
 		return;
 
+	g_assert (agent->ref == 0);
+
 	if (agent->request) {
 		DBusError err;
 		agent_pincode_cb pincode_cb;