summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-12 01:39:32 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-12 01:39:32 +0100
commit689bd78d108819b362e75af42536725c56b5e939 (patch)
treeaa1f0ed45ad516af4b0453b291e6d3730d7bd84e /src/libsystemd-bus
parent0a825b5cd4adb4d9dadfb2e237cdceae09399804 (diff)
bus: fix order in which we check creds
Diffstat (limited to 'src/libsystemd-bus')
-rw-r--r--src/libsystemd-bus/bus-creds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-creds.c b/src/libsystemd-bus/bus-creds.c
index d69a316d03..ffd72a7a3d 100644
--- a/src/libsystemd-bus/bus-creds.c
+++ b/src/libsystemd-bus/bus-creds.c
@@ -369,11 +369,11 @@ _public_ int sd_bus_creds_get_owner_uid(sd_bus_creds *c, uid_t *uid) {
_public_ int sd_bus_creds_get_cmdline(sd_bus_creds *c, char ***cmdline) {
assert_return(c, -EINVAL);
- assert_return(c->cmdline, -ESRCH);
if (!(c->mask & SD_BUS_CREDS_CMDLINE))
return -ENODATA;
+ assert_return(c->cmdline, -ESRCH);
assert(c->cmdline);
if (!c->cmdline_array) {