s4/vampire: fixed i/j index mixup in vampire code
authorAndrew Tridgell <tridge@samba.org>
Wed, 9 Sep 2009 15:26:34 +0000 (01:26 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 9 Sep 2009 15:26:34 +0000 (01:26 +1000)
source4/libnet/libnet_vampire.c

index ec1545e6a4958ca3970fea141fd515dc0fb09e1f..5e516afaee4157213f79ef86305fd9bbc98f7376 100644 (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) {