65878a
From b8e064bd25ccd701a8249a9c9b59049f8c055b93 Mon Sep 17 00:00:00 2001
65878a
From: Lennart Poettering <lennart@poettering.net>
65878a
Date: Wed, 2 Oct 2013 19:37:30 +0200
65878a
Subject: [PATCH] dbus: fix return value of dispatch_rqueue()
65878a
65878a
---
65878a
 src/libsystemd-bus/sd-bus.c | 4 ++--
65878a
 1 file changed, 2 insertions(+), 2 deletions(-)
65878a
65878a
diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c
65878a
index 3f766fb..db0880f 100644
65878a
--- a/src/libsystemd-bus/sd-bus.c
65878a
+++ b/src/libsystemd-bus/sd-bus.c
65878a
@@ -1215,11 +1215,11 @@ static int dispatch_rqueue(sd_bus *bus, sd_bus_message **m) {
65878a
                 if (r == 0)
65878a
                         return ret;
65878a
 
65878a
-                r = 1;
65878a
+                ret = 1;
65878a
         } while (!z);
65878a
 
65878a
         *m = z;
65878a
-        return 1;
65878a
+        return ret;
65878a
 }
65878a
 
65878a
 int sd_bus_send(sd_bus *bus, sd_bus_message *m, uint64_t *serial) {