From bf1009201de83bb8c511d3a40d6a499d57f0fda7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 27 Jun 2011 23:08:42 +0200 Subject: [PATCH] logind: fix bad memory access --- src/logind-dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logind-dbus.c b/src/logind-dbus.c index 050eb71..9b199de 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) { -- 2.7.4