Skip to content

Commit

Permalink
s4:dsdb: Check return code (CID 1444824/1444844)
Browse files Browse the repository at this point in the history
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 61037a8 commit 7e8c386
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source4/dsdb/samdb/ldb_modules/linked_attributes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,10 @@ static int linked_attributes_fix_links(struct ldb_module *module,
self_guid,
target->syntax->ldap_oid);
}
if (ret != LDB_SUCCESS) {
talloc_free(tmp_ctx);
return ret;
}
ret = dsdb_check_single_valued_link(target, el2);
if (ret != LDB_SUCCESS) {
talloc_free(tmp_ctx);
Expand Down

0 comments on commit 7e8c386

Please sign in to comment.