[systemd-devel] [PATCH] logind: Terminate bus_login_session_user_properties

Benjamin Franzke benjaminfranzke at googlemail.com
Tue Feb 7 13:39:35 PST 2012


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

Bug introduced by d200735e13c52dcfe36c0e066f9f6c2fbfb85a9c,
so only systemd v39 is affected.
---
 src/login/logind-session-dbus.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/login/logind-session-dbus.c b/src/login/logind-session-dbus.c
index dabb91c..9767f7d 100644
--- a/src/login/logind-session-dbus.c
+++ b/src/login/logind-session-dbus.c
@@ -251,6 +251,7 @@ static const BusProperty bus_login_session_properties[] = {
 static const BusProperty bus_login_session_user_properties[] = {
         { "User",                   bus_session_append_user,         "(uo)", 0 },
         { "Name",                   bus_property_append_string,         "s", offsetof(User, name),                  true },
+        { NULL, }
 };
 
 static DBusHandlerResult session_message_dispatch(
-- 
1.7.3.4



More information about the systemd-devel mailing list