summaryrefslogtreecommitdiff
path: root/extras/udev-acl
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-06-16 18:11:40 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-06-16 18:11:40 +0200
commitfc04059abfc5d1fa9bfe9afb15ca03017a26fb56 (patch)
tree278c2830f7bc403668966c8ad08a5fda859550d5 /extras/udev-acl
parent88a7923e91fddec8e4f4c9115168ede5d239d8ee (diff)
udev-acl: handle missing action when called in CK mode
Diffstat (limited to 'extras/udev-acl')
-rw-r--r--extras/udev-acl/udev-acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/udev-acl/udev-acl.c b/extras/udev-acl/udev-acl.c
index ec95025eb3..3eb29fe2f2 100644
--- a/extras/udev-acl/udev-acl.c
+++ b/extras/udev-acl/udev-acl.c
@@ -159,7 +159,7 @@ static int consolekit_called(const char *action, uid_t *uid, const char **own_se
const char *s;
const char *session;
- if (strcmp(action, "session_active_changed") != 0)
+ if (action == NULL || strcmp(action, "session_active_changed") != 0)
return -1;
s = getenv("CK_SESSION_IS_LOCAL");