From: Joseph Sutton Date: Thu, 5 Oct 2023 22:05:49 +0000 (+1300) Subject: s4:dsdb: Remove unreachable code (CID 1034686) X-Git-Tag: tevent-0.16.0~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cf9f43e4313f178fdfb6c38b067e70127e6fcfa;p=thirdparty%2Fsamba.git s4:dsdb: Remove unreachable code (CID 1034686) Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/dsdb/samdb/ldb_modules/dirsync.c b/source4/dsdb/samdb/ldb_modules/dirsync.c index 3df2d93ac36..61b5bf6ec6a 100644 --- a/source4/dsdb/samdb/ldb_modules/dirsync.c +++ b/source4/dsdb/samdb/ldb_modules/dirsync.c @@ -1116,8 +1116,6 @@ static int dirsync_ldb_search(struct ldb_module *module, struct ldb_request *req return ret; } talloc_free(acl_res); - } else if (ret != LDB_SUCCESS) { - return ret; } dsc->functional_level = dsdb_functional_level(ldb);