Commit 23521432 authored by Ray Strode's avatar Ray Strode Committed by Ray Strode

manager: make get_login_window_session_id fail if no login screen

Right now we oddly succeed from get_login_window_session_id
if we can't find a login window.

None of the caller expect that, so fail instead.
parent 77c791af
......@@ -1337,7 +1337,7 @@ get_login_window_session_id (const char *seat_id,
if (sessions == NULL || sessions[0] == NULL) {
*session_id = NULL;
ret = TRUE;
ret = FALSE;
goto out;
}
......@@ -1399,7 +1399,7 @@ get_login_window_session_id (const char *seat_id,
}
*session_id = NULL;
ret = TRUE;
ret = FALSE;
out:
if (sessions) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment