diff options
-rw-r--r-- | lib/ldb/ldb_tdb/ldb_tdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ldb/ldb_tdb/ldb_tdb.c b/lib/ldb/ldb_tdb/ldb_tdb.c index 860ee146a6..4fb151622a 100644 --- a/lib/ldb/ldb_tdb/ldb_tdb.c +++ b/lib/ldb/ldb_tdb/ldb_tdb.c @@ -265,7 +265,8 @@ int ltdb_store(struct ldb_module *module, const struct ldb_message *msg, int flg return LDB_ERR_OTHER; } - ret = ldb_pack_data(module, msg, (struct ldb_val *)&tdb_data); + ret = ldb_pack_data(ldb_module_get_ctx(module), + msg, (struct ldb_val *)&tdb_data); if (ret == -1) { talloc_free(tdb_key.dptr); return LDB_ERR_OTHER; |