From: Lennart Poettering Date: Mon, 27 Jun 2011 21:08:42 +0000 (+0200) Subject: logind: fix bad memory access X-Git-Tag: v30~136 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf1009201de83bb8c511d3a40d6a499d57f0fda7;p=systemd logind: fix bad memory access --- diff --git a/src/logind-dbus.c b/src/logind-dbus.c index 050eb716..9b199de2 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) {