summaryrefslogtreecommitdiff
path: root/src/logind-dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-27 23:08:42 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-27 23:08:42 +0200
commitbf1009201de83bb8c511d3a40d6a499d57f0fda7 (patch)
tree1a5aa337e9911722f2a136fbf444a257bf3691b6 /src/logind-dbus.c
parentbafd4449ff851076b69ffaf918068465a726d928 (diff)
logind: fix bad memory access
Diffstat (limited to 'src/logind-dbus.c')
-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) {