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>
Mon, 27 Apr 2020 17:02:57 +0000 (18:02 +0100)
commit761cd0343f468c5a3cafdcdfb951670f294d92b9
tree50d9fc2aac82012562622b187eed8df6c1ff2a8c
parent582ecdd6ce313170f81876fe478779d5065933a7
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