summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-07-16 14:13:20 +0300
committerAndrew Bartlett <abartlet@samba.org>2010-07-19 17:33:35 +1000
commit91d9f88d28e58157ca63caeb76ff779321d7bb53 (patch)
tree8a0ab3324adb865c88f7720050481ed14233a872
parentd71b20e8dc9d8e8366ffb5147c84586f5d71416e (diff)
downloadsamba-91d9f88d28e58157ca63caeb76ff779321d7bb53.tar.gz
samba-91d9f88d28e58157ca63caeb76ff779321d7bb53.tar.bz2
samba-91d9f88d28e58157ca63caeb76ff779321d7bb53.zip
s4-test: Use ldb_msg_normalize() in torture/rpc/dssync.c test
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/torture/rpc/dssync.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/rpc/dssync.c b/source4/torture/rpc/dssync.c
index 150db42e96..860c3ebfcf 100644
--- a/source4/torture/rpc/dssync.c
+++ b/source4/torture/rpc/dssync.c
@@ -538,8 +538,10 @@ static bool test_analyse_objects(struct torture_context *tctx,
}
}
- drs_msg = ldb_msg_canonicalize(ldb, objs->objects[i].msg);
- talloc_steal(search_req, drs_msg);
+ ret = ldb_msg_normalize(ldb, search_req,
+ objs->objects[i].msg, &drs_msg);
+ torture_assert(tctx, ret == LDB_SUCCESS,
+ "ldb_msg_normalize() has failed");
for (j=0; j < drs_msg->num_elements; j++) {
if (drs_msg->elements[j].num_values == 0) {