1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

s4/vampire: fixed i/j index mixup in vampire code

This commit is contained in:
Andrew Tridgell 2009-09-10 01:26:34 +10:00
parent a84a82335c
commit 557cc460f2

View File

@ -234,9 +234,9 @@ static NTSTATUS vampire_apply_schema(struct vampire_state *s,
for (j=0; j < a->value_ctr.num_values; j++) {
uint32_t val = 0xFFFFFFFF;
if (a->value_ctr.values[i].blob
&& a->value_ctr.values[i].blob->length == 4) {
val = IVAL(a->value_ctr.values[i].blob->data,0);
if (a->value_ctr.values[j].blob
&& a->value_ctr.values[j].blob->length == 4) {
val = IVAL(a->value_ctr.values[j].blob->data,0);
}
if (val == DRSUAPI_OBJECTCLASS_attributeSchema) {