From 2a76ef96468c34d96a8b13d5d894891d7d3ffc20 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Fri, 6 Nov 2015 14:02:29 +0100 Subject: [PATCH 1/2] Fix bug unrefing connection too early in check_hello_message(). Bug: https://bugs.freedesktop.org/show_bug.cgi?id=92721 --- bus/dispatch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bus/dispatch.c b/bus/dispatch.c index 3ea944a..ae7ac38 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; } -- 1.8.4.5