Skip to content

Commit

Permalink
s4:dsdb: Fix unreachable code (CID 1435967)
Browse files Browse the repository at this point in the history
Commit ede668e removed this condition
for some unexplained reason, causing the following code to become
unreachable.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
  • Loading branch information
jsutton24 authored and abartlet committed Oct 13, 2023
1 parent 4cf9f43 commit b098eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source4/dsdb/samdb/ldb_modules/partition.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b098eb8

Please sign in to comment.