From 32fb6c5b87b090ec29df0579852bc5384d5e8fc9 Mon Sep 17 00:00:00 2001
From: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date: Mon, 12 Mar 2012 12:33:48 +0000
Subject: [PATCH 2/3] _dbus_transport_get_is_authenticated: avoid unnecessary
 unref

The commit "Remove transport's call to
_dbus_authorization_do_authorization()" removed a ref/unref pair
in the normal code path, but did not remove the corresponding unref
from an error case.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39720
---
 dbus/dbus-transport.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/dbus/dbus-transport.c b/dbus/dbus-transport.c
index 73b379c..59b10a8 100644
--- a/dbus/dbus-transport.c
+++ b/dbus/dbus-transport.c
@@ -595,7 +595,6 @@ _dbus_transport_get_is_authenticated (DBusTransport *transport)
               _dbus_verbose ("Client expected GUID '%s' and we got '%s' from the server\n",
                              transport->expected_guid, server_guid);
               _dbus_transport_disconnect (transport);
-              _dbus_connection_unref_unlocked (transport->connection);
               return FALSE;
             }
         }
-- 
1.7.9.1