summaryrefslogtreecommitdiffstats
path: root/server/monitor/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/monitor/monitor.c')
-rw-r--r--server/monitor/monitor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/monitor/monitor.c b/server/monitor/monitor.c
index ff88b293c..a07178f87 100644
--- a/server/monitor/monitor.c
+++ b/server/monitor/monitor.c
@@ -365,6 +365,7 @@ int monitor_process_init(TALLOC_CTX *mem_ctx,
struct mt_ctx *ctx;
struct mt_svc *svc;
char **doms;
+ int dom_count;
char *path;
int ret, i;
@@ -434,13 +435,13 @@ int monitor_process_init(TALLOC_CTX *mem_ctx,
}
/* now start the data providers */
- ret = confdb_get_domains(cdb, ctx, &doms);
+ ret = confdb_get_domains_list(cdb, ctx, (const char ***)&doms, &dom_count);
if (ret != EOK) {
DEBUG(2, ("No domains configured. LOCAL should always exist!\n"));
return ret;
}
- for (i = 0; doms[i]; i++) {
+ for (i = 0; i < dom_count; i++) {
svc = talloc_zero(ctx, struct mt_svc);
if (!svc) {
talloc_free(ctx);