git.samba.org
/
kamenim
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c10562b
)
s4-test: Use ldb_msg_canonicalize_ex() in torture/rpc/dssync.c test
author
Kamen Mazdrashki
<kamenim@samba.org>
Sat, 10 Jul 2010 00:29:47 +0000
(
03:29
+0300)
committer
Kamen Mazdrashki
<kamenim@samba.org>
Sat, 10 Jul 2010 20:03:15 +0000
(23:03 +0300)
source4/torture/rpc/dssync.c
patch
|
blob
|
history
diff --git
a/source4/torture/rpc/dssync.c
b/source4/torture/rpc/dssync.c
index 2efb9e7bb1511d793b11a0452fb535ac00b7ea8d..f1feae24f664feaf0cdda3956860686a74efd386 100644
(file)
--- 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_canonicalize_ex(ldb, objs->objects[i].msg,
+ (TALLOC_CTX*)search_req, &drs_msg);
+ torture_assert(tctx, ret == LDB_SUCCESS,
+ "ldb_msg_canonicalize_ex() has failed");
for (j=0; j < drs_msg->num_elements; j++) {
if (drs_msg->elements[j].num_values == 0) {