From: Andrew Bartlett Date: Mon, 9 Apr 2018 02:52:47 +0000 (+1200) Subject: dsdb: Ensure to cancel the transaction if we fail to save the prefixMap X-Git-Tag: ldb-1.4.0~639 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=23ef25faf5f60d4fcbaec28ffebd249556028c75;p=thirdparty%2Fsamba.git dsdb: Ensure to cancel the transaction if we fail to save the prefixMap This rare error case forgot to call ldb_transaction_cancel() Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c index 0c44960cf5f..4c8890f0553 100644 --- a/source4/dsdb/repl/replicated_objects.c +++ b/source4/dsdb/repl/replicated_objects.c @@ -921,6 +921,7 @@ WERROR dsdb_replicated_objects_commit(struct ldb_context *ldb, } DEBUG(0,("Failed to save updated prefixMap: %s\n", win_errstr(werr))); + ldb_transaction_cancel(ldb); TALLOC_FREE(tmp_ctx); return werr; }