From 1e4e51f4c913a3821d7ecbd0842280240917ae38 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Wed, 26 Dec 2012 21:41:52 -0800 Subject: ldb-tdb: Fix a wrong parameter in ltdb_store Reviewed-by: Andrew Bartlett --- lib/ldb/ldb_tdb/ldb_tdb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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; -- cgit