1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 08:26:52 +03:00

logind: Terminate bus_login_session_user_properties

Fixes segfault in systemd-logind, triggered by:
systemd-loginctl show-session $XDG_SESSION_ID.

Bug introduced by d200735e13,
so only systemd v39 is affected.
This commit is contained in:
Benjamin Franzke 2012-02-07 22:39:35 +01:00 committed by Lennart Poettering
parent cae5846b2c
commit 1d4ec31570

View File

@ -251,6 +251,7 @@ static const BusProperty bus_login_session_properties[] = {
static const BusProperty bus_login_session_user_properties[] = { static const BusProperty bus_login_session_user_properties[] = {
{ "User", bus_session_append_user, "(uo)", 0 }, { "User", bus_session_append_user, "(uo)", 0 },
{ "Name", bus_property_append_string, "s", offsetof(User, name), true }, { "Name", bus_property_append_string, "s", offsetof(User, name), true },
{ NULL, }
}; };
static DBusHandlerResult session_message_dispatch( static DBusHandlerResult session_message_dispatch(