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>
Wed, 16 Oct 2019 13:24:54 +0000 (14:24 +0100)
commit195aa19a6c9b7c5bd86a0961259209e9b24411e9
tree5ce2087c47c8df73369967f2bbf15e47309000c0
parentc2b397ebcf5a65f1dd992c9f542ae28e0daae96f
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