diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-06-10 15:51:40 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-06-10 15:52:52 +0200 |
commit | 3c42e8b281b092b4d10f24c80e21d69b0f232b96 (patch) | |
tree | 98da5d9e37eed5f65393ea60aaecde2eb313e897 /src/libsystemd | |
parent | d9cea815b6107839d1aa56858165649858a21e18 (diff) |
sd-bus: fix early exit when we lack all data in bus_get_owner_creds_dbus1()
Diffstat (limited to 'src/libsystemd')
-rw-r--r-- | src/libsystemd/sd-bus/bus-control.c | 2 |
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(); |