summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/logind-dbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logind-dbus.c b/src/logind-dbus.c
index 050eb7160e..9b199de20a 100644
--- a/src/logind-dbus.c
+++ b/src/logind-dbus.c
@@ -258,7 +258,7 @@ static int bus_manager_create_session(Manager *m, DBusMessage *message, DBusMess
else if (vtnr != (uint32_t) v)
return -EINVAL;
- } else if (!isempty(tty) && seat_is_vtconsole(s))
+ } else if (!isempty(tty) && s && seat_is_vtconsole(s))
return -EINVAL;
if (s) {