summaryrefslogtreecommitdiff
path: root/lib/ldb/ldb_tdb/ldb_tdb.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-10-30 10:21:42 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-10-31 08:13:56 +1100
commitcc6d0decc7980028293168aee267e7610752fc80 (patch)
tree766f0800fdfb0f3fbf7e26aaecae0f38bed3957c /lib/ldb/ldb_tdb/ldb_tdb.c
parent42c379f0dfdeb36598bb2636aa2b6e3ca4410930 (diff)
downloadsamba-cc6d0decc7980028293168aee267e7610752fc80.tar.gz
samba-cc6d0decc7980028293168aee267e7610752fc80.tar.bz2
samba-cc6d0decc7980028293168aee267e7610752fc80.zip
ldb: Change ltdb_unpack_data to take an ldb_context
It always de-references the module to find the ldb anyway. Andrew Bartlett
Diffstat (limited to 'lib/ldb/ldb_tdb/ldb_tdb.c')
-rw-r--r--lib/ldb/ldb_tdb/ldb_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldb/ldb_tdb/ldb_tdb.c b/lib/ldb/ldb_tdb/ldb_tdb.c
index 3c181509c3..0e7c74c640 100644
--- a/lib/ldb/ldb_tdb/ldb_tdb.c
+++ b/lib/ldb/ldb_tdb/ldb_tdb.c
@@ -693,7 +693,7 @@ int ltdb_modify_internal(struct ldb_module *module,
goto done;
}
- ret = ltdb_unpack_data(module, &tdb_data, msg2);
+ ret = ltdb_unpack_data(ldb_module_get_ctx(module), &tdb_data, msg2);
free(tdb_data.dptr);
if (ret == -1) {
ret = LDB_ERR_OTHER;