summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-01-02 19:24:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:35:58 -0500
commitc0d70be7d0bda6f0530b595680a68849200f0e27 (patch)
tree3c615393e1fb123e441cafcea8125484578bf843 /source4
parentc4d4385a7129041d5e1effda4f1b97f4595d9853 (diff)
downloadsamba-c0d70be7d0bda6f0530b595680a68849200f0e27.tar.gz
samba-c0d70be7d0bda6f0530b595680a68849200f0e27.tar.bz2
samba-c0d70be7d0bda6f0530b595680a68849200f0e27.zip
r20483: Sorry Volker:-)
I missed to commit this file:-( metze (This used to be commit e11885f8a78698ad479826784491548e8b695a04)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/libnet/libnet_BecomeDC.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/torture/libnet/libnet_BecomeDC.c b/source4/torture/libnet/libnet_BecomeDC.c
index 605b723316..ecee329ea3 100644
--- a/source4/torture/libnet/libnet_BecomeDC.c
+++ b/source4/torture/libnet/libnet_BecomeDC.c
@@ -157,13 +157,13 @@ static NTSTATUS test_apply_schema(struct test_become_dc_state *s,
switch (a->attid) {
case DRSUAPI_ATTRIBUTE_objectClass:
-#if 0
- /*
- * Metze, please fix this properly :-)
- */
+ for (j=0; j < a->value_ctr.data_blob.num_values; j++) {
+ uint32_t val = 0xFFFFFFFF;
- for (j=0; j < a->value_ctr.uint32.num_values; j++) {
- uint32_t val = *a->value_ctr.uint32.values[j].value;
+ if (a->value_ctr.data_blob.values[i].data
+ && a->value_ctr.data_blob.values[i].data->length == 4) {
+ val = IVAL(a->value_ctr.data_blob.values[i].data->data,0);
+ }
if (val == DRSUAPI_OBJECTCLASS_attributeSchema) {
is_attr = true;
@@ -172,7 +172,7 @@ static NTSTATUS test_apply_schema(struct test_become_dc_state *s,
is_class = true;
}
}
-#endif
+
break;
default:
break;