From fea02ce1771ddb2ee09a442a86def72a01b9582e Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Wed, 21 Sep 2011 11:45:32 +0200 Subject: ldb:ldb_autotransaction_request - error string shouldn't be set here A generic error string should be set independently of the access mechanism to an LDB operation. Hence it should be handled in "ldb_wait" and "ldb_request" Signed-off-by: Andrew Tridgell Autobuild-User: Andrew Tridgell Autobuild-Date: Tue Oct 11 10:15:18 CEST 2011 on sn-devel-104 --- lib/ldb/common/ldb.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/ldb/common/ldb.c b/lib/ldb/common/ldb.c index 4a0d8043cc..cd6172a1e8 100644 --- a/lib/ldb/common/ldb.c +++ b/lib/ldb/common/ldb.c @@ -564,11 +564,6 @@ static int ldb_autotransaction_request(struct ldb_context *ldb, } ldb_transaction_cancel(ldb); - if (ldb->err_string == NULL) { - /* no error string was setup by the backend */ - ldb_asprintf_errstring(ldb, "%s (%d)", ldb_strerror(ret), ret); - } - return ret; } -- cgit