summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-12-28 22:43:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:47:57 -0500
commita50b42dcb5d50ef17007f727b6b3c60d4b7224a3 (patch)
tree926bda8e8d048a0e501156a5e159b46c7a862eb7 /source4
parentf71f21fa0544dcf1a0de5f3c3293c18df0b2f9cc (diff)
downloadsamba-a50b42dcb5d50ef17007f727b6b3c60d4b7224a3.tar.gz
samba-a50b42dcb5d50ef17007f727b6b3c60d4b7224a3.tar.bz2
samba-a50b42dcb5d50ef17007f727b6b3c60d4b7224a3.zip
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)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/common/ldb_modules.c2
1 files changed, 1 insertions, 1 deletions
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);
}