summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2015-11-06 14:02:29 +0100
committerRalf Habacker <ralf.habacker@freenet.de>2015-11-06 17:53:29 +0100
commit15e0bba3f879126b7313ad9eeb95c482109d95a6 (patch)
tree943e913e5dc0a468d7efaa1643adce557d765e59
parent008264ff558d7a693ffcb098832de62320574d79 (diff)
downloaddbus-15e0bba3f879126b7313ad9eeb95c482109d95a6.tar.gz
Fix bug unrefing connection too early in check_hello_message().
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=92721 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
-rw-r--r--bus/dispatch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bus/dispatch.c b/bus/dispatch.c
index 3ea944ab..ae7ac385 100644
--- a/bus/dispatch.c
+++ b/bus/dispatch.c
@@ -941,8 +941,6 @@ check_hello_message (BusContext *context,
return TRUE;
}
- dbus_connection_unref (connection);
-
message = pop_message_waiting_for_memory (connection);
if (message == NULL)
{
@@ -1090,6 +1088,8 @@ check_hello_message (BusContext *context,
if (name_message)
dbus_message_unref (name_message);
+ dbus_connection_unref (connection);
+
return retval;
}