mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ldb: Reset error string before running prepare_commit() hook
This ensures that the error string returned to the caller reflects a failure in this call. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
46d127865f
commit
04e3c4bea2
@ -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--;
|
||||
|
Loading…
Reference in New Issue
Block a user