From: Joseph Sutton Date: Thu, 5 Oct 2023 23:45:55 +0000 (+1300) Subject: s4:dsdb: Fix unreachable code (CID 1435967) X-Git-Tag: tevent-0.16.0~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b098eb82bf4c91aa8a7599cad4b0b6f65e843692;p=thirdparty%2Fsamba.git s4:dsdb: Fix unreachable code (CID 1435967) Commit ede668e8e24c86f0836dfa5740e76d8aca1e0824 removed this condition for some unexplained reason, causing the following code to become unreachable. 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 a0a6db48789..94ff730b4b5 100644 --- a/source4/dsdb/samdb/ldb_modules/partition.c +++ b/source4/dsdb/samdb/ldb_modules/partition.c @@ -428,7 +428,7 @@ static int partition_copy_all_callback_action( * lead to an error */ search_ret = dsdb_module_search_dn(module, ac, &res, dn, NULL, DSDB_FLAG_NEXT_MODULE, req); - if (search_ret != LDB_SUCCESS) { + if (search_ret != LDB_SUCCESS && search_ret != LDB_ERR_NO_SUCH_OBJECT) { return search_ret; }