mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
torture: Only walk over objects actually converted in drs.dssync
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
ea840010ee
commit
b816ca3e0f
@ -384,11 +384,12 @@ static bool test_analyse_objects(struct torture_context *tctx,
|
||||
deleted_dn = ldb_dn_new(objs, ldb, partition);
|
||||
ldb_dn_add_child_fmt(deleted_dn, "CN=Deleted Objects");
|
||||
|
||||
for (i=0; i < object_count; i++) {
|
||||
for (i=0; i < objs->num_objects; i++) {
|
||||
struct ldb_request *search_req;
|
||||
struct ldb_result *res;
|
||||
struct ldb_message *new_msg, *drs_msg, *ldap_msg;
|
||||
const char **attrs = talloc_array(objs, const char *, objs->objects[i].msg->num_elements+1);
|
||||
size_t num_attrs = objs->objects[i].msg->num_elements+1;
|
||||
const char **attrs = talloc_array(objs, const char *, num_attrs);
|
||||
for (j=0; j < objs->objects[i].msg->num_elements; j++) {
|
||||
attrs[j] = objs->objects[i].msg->elements[j].name;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user