Skip to content
Browse files

Do not read more data as necessary

  • Loading branch information...
1 parent 4b0c0b8 commit b65b9423b8e3cf9af3484da422ede1ed04baf9da @borisz borisz committed Mar 5, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/LookupService.cs
View
2 src/LookupService.cs
@@ -820,7 +820,7 @@ public class LookupService{
for (int depth = 31; depth >= 0; depth--) {
try {
if ((dboptions & GEOIP_MEMORY_CACHE) == 1) {
- for (int i = 0;i < (2 * MAX_RECORD_LENGTH);i++) {
+ for (int i = 0;i < (2 * recordLength);i++) {
buf[i] = dbbuffer[i+(2 * recordLength * offset)];
}
} else {

0 comments on commit b65b942

Please sign in to comment.
Something went wrong with that request. Please try again.