From 689bd78d108819b362e75af42536725c56b5e939 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 12 Dec 2013 01:39:32 +0100 Subject: bus: fix order in which we check creds --- src/libsystemd-bus/bus-creds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3-54-g00ecf