udev-acl: handle missing action when called in CK mode

This commit is contained in:
Kay Sievers 2009-06-16 18:11:40 +02:00
parent 88a7923e91
commit fc04059abf

View File

@ -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");