diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2015-11-06 14:02:29 +0100 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2015-11-06 17:53:29 +0100 |
commit | 15e0bba3f879126b7313ad9eeb95c482109d95a6 (patch) | |
tree | 943e913e5dc0a468d7efaa1643adce557d765e59 | |
parent | 008264ff558d7a693ffcb098832de62320574d79 (diff) | |
download | dbus-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.c | 4 |
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; } |