From 0d3fad824641eabd2e856f7b4aa7828367bba5fa Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Tue, 28 Oct 2008 09:10:01 -0400 Subject: Fixed segfault issue when remote connection is lost. --- server/monitor.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'server/monitor.c') diff --git a/server/monitor.c b/server/monitor.c index b11e4e0c..f651b79f 100644 --- a/server/monitor.c +++ b/server/monitor.c @@ -204,14 +204,6 @@ int start_monitor(TALLOC_CTX *mem_ctx, return EINVAL; } - /* Initialize D-BUS Server - * The monitor will act as a D-BUS server for all - * SSSD processes */ - ret = monitor_dbus_init(ctx); - if (ret != EOK) { - return ret; - } - for (i = 0; ctx->services[i]; i++) { srv = talloc_zero(ctx, struct mt_srv); @@ -230,6 +222,14 @@ int start_monitor(TALLOC_CTX *mem_ctx, set_tasks_checker(srv); } + + /* Initialize D-BUS Server + * The monitor will act as a D-BUS server for all + * SSSD processes */ + ret = monitor_dbus_init(ctx); + if (ret != EOK) { + return ret; + } return EOK; } -- cgit