diff --git a/lib/ldb/common/ldb.c b/lib/ldb/common/ldb.c index 2249089d087..5525e70b465 100644 --- a/lib/ldb/common/ldb.c +++ b/lib/ldb/common/ldb.c @@ -425,6 +425,8 @@ int ldb_transaction_prepare_commit(struct ldb_context *ldb) return LDB_SUCCESS; } + ldb_reset_err_string(ldb); + status = next_module->ops->prepare_commit(next_module); if (status != LDB_SUCCESS) { ldb->transaction_active--;