chiark / gitweb /
udev-acl: handle missing action when called in CK mode
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 16 Jun 2009 16:11:40 +0000 (18:11 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 16 Jun 2009 16:11:40 +0000 (18:11 +0200)
extras/udev-acl/udev-acl.c

index ec95025..3eb29fe 100644 (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");