summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-06-10 15:51:40 +0200
committerLennart Poettering <lennart@poettering.net>2015-06-10 15:52:52 +0200
commit3c42e8b281b092b4d10f24c80e21d69b0f232b96 (patch)
tree98da5d9e37eed5f65393ea60aaecde2eb313e897 /src/libsystemd/sd-bus
parentd9cea815b6107839d1aa56858165649858a21e18 (diff)
sd-bus: fix early exit when we lack all data in bus_get_owner_creds_dbus1()
Diffstat (limited to 'src/libsystemd/sd-bus')
-rw-r--r--src/libsystemd/sd-bus/bus-control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-control.c b/src/libsystemd/sd-bus/bus-control.c
index 43ddfc651d..b4ca177f76 100644
--- a/src/libsystemd/sd-bus/bus-control.c
+++ b/src/libsystemd/sd-bus/bus-control.c
@@ -980,7 +980,7 @@ static int bus_get_owner_creds_dbus1(sd_bus *bus, uint64_t mask, sd_bus_creds **
pid_t pid = 0;
int r;
- if (!bus->ucred_valid && !isempty(bus->label))
+ if (!bus->ucred_valid && isempty(bus->label))
return -ENODATA;
c = bus_creds_new();