summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/confdb/confdb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/confdb/confdb.c b/server/confdb/confdb.c
index c1334735..7c88b25b 100644
--- a/server/confdb/confdb.c
+++ b/server/confdb/confdb.c
@@ -655,14 +655,15 @@ int confdb_init(TALLOC_CTX *mem_ctx,
return EIO;
}
- ret = ldb_connect(cdb->ldb, confdb_location, 0, NULL);
+ ret = ldb_set_debug(cdb->ldb, ldb_debug_messages, NULL);
if (ret != LDB_SUCCESS) {
+ DEBUG(0,("Could not set up debug fn.\n"));
talloc_free(cdb);
return EIO;
}
- ret = ldb_set_debug(cdb->ldb, ldb_debug_messages, NULL);
+
+ ret = ldb_connect(cdb->ldb, confdb_location, 0, NULL);
if (ret != LDB_SUCCESS) {
- DEBUG(0,("Could not set up debug fn.\n"));
talloc_free(cdb);
return EIO;
}