Skip to content
Browse files

Merge pull request #7 from maxmind/bz/fix-read

Do not read more data as necessary
  • Loading branch information...
2 parents 4b0c0b8 + b65b942 commit fe255d6dba6f6b67e67c54ee21659666b5e94285 @oschwald oschwald 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 fe255d6

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