summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-23 21:55:27 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-23 21:55:27 +0100
commitd711a957780932a2705d9ae9a1fc1b6fa7200b75 (patch)
tree392e206ec82ce5c652da67dcab027dff3795b005
parent3022d74ba585f961de7015087cd95673705bee3c (diff)
bus: fix sender match creation on kdbus
-rw-r--r--src/libsystemd-bus/bus-control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-control.c b/src/libsystemd-bus/bus-control.c
index a8983168ab..942bc01788 100644
--- a/src/libsystemd-bus/bus-control.c
+++ b/src/libsystemd-bus/bus-control.c
@@ -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);