r12553: Steal the error string onto this context, so that the caller doesn't
authorAndrew Bartlett <abartlet@samba.org>
Wed, 28 Dec 2005 22:43:12 +0000 (22:43 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:47:57 +0000 (13:47 -0500)
have to think about exactly what the right context to hang it of is.

Andrew Bartlett

source/lib/ldb/common/ldb_modules.c

index 7f8844137cb142162699965f5813911cb8083086..4c483b7afb2cf6ad50fa567380c8b470a7839aac 100644 (file)
@@ -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);
 }