summaryrefslogtreecommitdiff
path: root/source4/torture/drs
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-12-19 16:37:04 +0100
committerAndrew Bartlett <abartlet@samba.org>2010-12-21 15:10:37 +1100
commit912faf1b080736a4855e3ea99b49f0ccbf76af33 (patch)
treec23016201862beaf02f2b3a533f844147c626a42 /source4/torture/drs
parentef618f577870f28b8efd472a87d4dcf094d67d29 (diff)
downloadsamba-912faf1b080736a4855e3ea99b49f0ccbf76af33.tar.gz
samba-912faf1b080736a4855e3ea99b49f0ccbf76af33.tar.bz2
samba-912faf1b080736a4855e3ea99b49f0ccbf76af33.zip
s4:dsdb/schema/schema_* - adaptions needed for removed "const" on OIDs
Diffstat (limited to 'source4/torture/drs')
-rw-r--r--source4/torture/drs/drs_util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/torture/drs/drs_util.c b/source4/torture/drs/drs_util.c
index 6de758e0de..d2d3e3a949 100644
--- a/source4/torture/drs/drs_util.c
+++ b/source4/torture/drs/drs_util.c
@@ -41,6 +41,7 @@ bool drs_util_oid_from_attid(struct torture_context *tctx,
int i;
uint32_t hi_word, lo_word;
DATA_BLOB bin_oid = {NULL, 0};
+ char *oid;
struct drsuapi_DsReplicaOIDMapping *map_entry = NULL;
TALLOC_CTX *mem_ctx = talloc_named(tctx, 0, "util_drsuapi_oid_from_attid");
@@ -87,10 +88,12 @@ bool drs_util_oid_from_attid(struct torture_context *tctx,
}
torture_assert(tctx,
- ber_read_OID_String(tctx, bin_oid, _oid),
+ ber_read_OID_String(tctx, bin_oid, &oid),
"Failed to decode binary OID");
talloc_free(mem_ctx);
+ *_oid = oid;
+
return true;
}