inetmib1: Fix off-by-one error in findNextOidInTable.
index is 1-based, so take that into account when calculating the pointer to pass into the compare function.
This commit is contained in:
parent
190a11ddb6
commit
d0f93223b1
|
@ -393,7 +393,7 @@ static UINT findNextOidInTable(AsnObjectIdentifier *oid,
|
|||
* an infinite loop.
|
||||
*/
|
||||
for (++index; index <= table->numEntries && compare(key,
|
||||
&table->entries[tableEntrySize * index]) == 0; ++index)
|
||||
&table->entries[tableEntrySize * (index - 1)]) == 0; ++index)
|
||||
;
|
||||
}
|
||||
HeapFree(GetProcessHeap(), 0, key);
|
||||
|
|
Loading…
Reference in New Issue