diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-06-27 23:08:42 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-06-27 23:08:42 +0200 |
commit | bf1009201de83bb8c511d3a40d6a499d57f0fda7 (patch) | |
tree | 1a5aa337e9911722f2a136fbf444a257bf3691b6 /src | |
parent | bafd4449ff851076b69ffaf918068465a726d928 (diff) |
logind: fix bad memory access
Diffstat (limited to 'src')
-rw-r--r-- | src/logind-dbus.c | 2 |
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) { |