From: Joseph Sutton Date: Thu, 5 Oct 2023 21:37:32 +0000 (+1300) Subject: s4:dsdb: Check return code (CID 1444824/1444844) X-Git-Tag: tevent-0.16.0~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e8c38604abb7c5e9285d691727373feddd7c48a;p=thirdparty%2Fsamba.git s4:dsdb: Check return code (CID 1444824/1444844) Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- 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);