login: add a missing error check for session_set_leader()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 14 Feb 2019 01:59:13 +0000 (10:59 +0900)
committerMichael Biebl <biebl@debian.org>
Sat, 24 Oct 2020 18:44:48 +0000 (19:44 +0100)
commit89350b836a6f4abcf61c0f1b0b24248b1a1cfc84
tree4d64f8eb8b722a7f0b300f700436b217a69c0541
parent6cb4417709ac5a399452cf7cb2b778cfb1a769eb
login: add a missing error check for session_set_leader()

session_set_leader() may fail. If it fails, then manager_start_scope()
will trigger assertion.

This may be related to RHBZ#1663704.

(cherry picked from commit fe3ab8458b9c0ead4b3e14ac25b342d8c34376fe)

Gbp-Pq: Name login-add-a-missing-error-check-for-session_set_leader.patch
src/login/logind-dbus.c