chiark / gitweb /
bus: fix sender match creation on kdbus
authorLennart Poettering <lennart@poettering.net>
Mon, 23 Dec 2013 20:55:27 +0000 (21:55 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 23 Dec 2013 20:55:27 +0000 (21:55 +0100)
src/libsystemd-bus/bus-control.c

index a898316..942bc01 100644 (file)
@@ -923,7 +923,7 @@ int bus_add_match_internal_kernel(
                         if (r < 0)
                                 return r;
 
-                        if (r > 0) {
+                        if (r == 0) {
                                 sender = c->value_str;
                                 sender_length = strlen(sender);
                                 sz += ALIGN8(offsetof(struct kdbus_item, str) + sender_length + 1);