chiark / gitweb /
bus: fix sender match creation on kdbus
[elogind.git] / src / libsystemd-bus / bus-control.c
index a8983168abeee595d3b6b5f146f4c86b8392929c..942bc017886e90a88080ad92665fe458c61b7a79 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);