From: Joseph Sutton Date: Fri, 6 Oct 2023 02:43:41 +0000 (+1300) Subject: s4:dsdb: Don’t overwrite existing error code (CID 1445263) X-Git-Tag: tevent-0.16.0~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=244440d1578ca0f0486f970b319aa5e7ddf1b06b;p=thirdparty%2Fsamba.git s4:dsdb: Don’t overwrite existing error code (CID 1445263) Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/dsdb/samdb/ldb_modules/partition.c b/source4/dsdb/samdb/ldb_modules/partition.c index ca8fac09372..78bf6e603d7 100644 --- a/source4/dsdb/samdb/ldb_modules/partition.c +++ b/source4/dsdb/samdb/ldb_modules/partition.c @@ -1643,7 +1643,7 @@ int partition_read_unlock(struct ldb_module *module) } } - ret = partition_metadata_read_unlock(module); + ret2 = partition_metadata_read_unlock(module); /* * Don't overwrite the original failure code