summaryrefslogtreecommitdiffstats
path: root/server/monitor.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2008-10-28 09:10:01 -0400
committerSimo Sorce <idra@samba.org>2008-11-03 10:12:29 -0500
commit0d3fad824641eabd2e856f7b4aa7828367bba5fa (patch)
tree78ac333a9e9a5d38962d34a79ea695f1fc17171f /server/monitor.c
parentf95d98094c3872199eaed59da48a76c44d0e0531 (diff)
downloadsssd-0d3fad824641eabd2e856f7b4aa7828367bba5fa.tar.gz
sssd-0d3fad824641eabd2e856f7b4aa7828367bba5fa.tar.xz
sssd-0d3fad824641eabd2e856f7b4aa7828367bba5fa.zip
Fixed segfault issue when remote connection is lost.
Diffstat (limited to 'server/monitor.c')
-rw-r--r--server/monitor.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/server/monitor.c b/server/monitor.c
index b11e4e0c9..f651b79f1 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;
}