From 7e8c38604abb7c5e9285d691727373feddd7c48a Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Fri, 6 Oct 2023 10:37:32 +1300 Subject: [PATCH] s4:dsdb: Check return code (CID 1444824/1444844) Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- source4/dsdb/samdb/ldb_modules/linked_attributes.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source4/dsdb/samdb/ldb_modules/linked_attributes.c b/source4/dsdb/samdb/ldb_modules/linked_attributes.c index f05223ee8eb..d1232c711a6 100644 --- a/source4/dsdb/samdb/ldb_modules/linked_attributes.c +++ b/source4/dsdb/samdb/ldb_modules/linked_attributes.c @@ -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); -- 2.47.3