]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:dsdb: Check return code (CID 1444824/1444844)
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 5 Oct 2023 21:37:32 +0000 (10:37 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 13 Oct 2023 02:18:31 +0000 (02:18 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/linked_attributes.c

index f05223ee8ebd5319807cc4c8e87d7943579cdae3..d1232c711a62e364449f3a977dac6249099f4ec5 100644 (file)
@@ -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);