summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/serverid.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c
index 7e56301bf2..ee8ab32c50 100644
--- a/source3/lib/serverid.c
+++ b/source3/lib/serverid.c
@@ -350,6 +350,7 @@ bool serverid_traverse(int (*fn)(struct db_record *rec,
{
struct db_context *db;
struct serverid_traverse_state state;
+ NTSTATUS status;
db = serverid_db();
if (db == NULL) {
@@ -357,5 +358,7 @@ bool serverid_traverse(int (*fn)(struct db_record *rec,
}
state.fn = fn;
state.private_data = private_data;
- return db->traverse(db, serverid_traverse_fn, &state);
+
+ status = dbwrap_traverse(db, serverid_traverse_fn, &state, NULL);
+ return NT_STATUS_IS_OK(status);
}