diff options
Diffstat (limited to 'source4/lib/db_wrap.c')
-rw-r--r-- | source4/lib/db_wrap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/db_wrap.c b/source4/lib/db_wrap.c index 4a21648403..9fabd58caa 100644 --- a/source4/lib/db_wrap.c +++ b/source4/lib/db_wrap.c @@ -200,6 +200,8 @@ struct tdb_wrap *tdb_wrap_open(TALLOC_CTX *mem_ctx, int open_flags, mode_t mode) { struct tdb_wrap *w; + struct tdb_logging_context log_ctx; + log_ctx.log_fn = tdb_wrap_log; for (w=tdb_list;w;w=w->next) { if (strcmp(name, w->name) == 0) { @@ -215,7 +217,7 @@ struct tdb_wrap *tdb_wrap_open(TALLOC_CTX *mem_ctx, w->name = talloc_strdup(w, name); w->tdb = tdb_open_ex(name, hash_size, tdb_flags, - open_flags, mode, tdb_wrap_log, NULL, NULL); + open_flags, mode, &log_ctx, NULL); if (w->tdb == NULL) { talloc_free(w); return NULL; |