dbus: fix return value of dispatch_rqueue()
authorLennart Poettering <lennart@poettering.net>
Wed, 2 Oct 2013 17:37:30 +0000 (19:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 2 Oct 2013 17:45:12 +0000 (19:45 +0200)
src/libsystemd-bus/sd-bus.c

index 3f766fb519cc995da8d213e8241409e0a1aa0cef..db0880f21ce7c2ea3d987676ef9781af6a15249f 100644 (file)
@@ -1215,11 +1215,11 @@ static int dispatch_rqueue(sd_bus *bus, sd_bus_message **m) {
                 if (r == 0)
                         return ret;
 
-                r = 1;
+                ret = 1;
         } while (!z);
 
         *m = z;
-        return 1;
+        return ret;
 }
 
 int sd_bus_send(sd_bus *bus, sd_bus_message *m, uint64_t *serial) {