From a50b42dcb5d50ef17007f727b6b3c60d4b7224a3 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 28 Dec 2005 22:43:12 +0000 Subject: r12553: Steal the error string onto this context, so that the caller doesn't have to think about exactly what the right context to hang it of is. Andrew Bartlett (This used to be commit b1c8adcfe16c72252b0312e65676edcdbe472f09) --- source4/lib/ldb/common/ldb_modules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib') diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index 7f8844137c..4c483b7afb 100644 --- a/source4/lib/ldb/common/ldb_modules.c +++ b/source4/lib/ldb/common/ldb_modules.c @@ -260,6 +260,6 @@ void ldb_set_errstring(struct ldb_module *module, char *err_string) talloc_free(module->ldb->err_string); } - module->ldb->err_string = err_string; + module->ldb->err_string = talloc_steal(module->ldb, err_string); } -- cgit