diff options
-rw-r--r-- | source4/libnet/libnet_vampire.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/libnet/libnet_vampire.c b/source4/libnet/libnet_vampire.c index ec1545e6a4..5e516afaee 100644 --- a/source4/libnet/libnet_vampire.c +++ b/source4/libnet/libnet_vampire.c @@ -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) { |