Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Do not read more data as necessary #7

Merged
merged 1 commit into from

2 participants

@borisz

This minor improvement can wait for the next release of the API.

@oschwald oschwald merged commit fe255d6 into from
@oschwald oschwald deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 5, 2014
  1. @borisz
This page is out of date. Refresh to see the latest.
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 {
Something went wrong with that request. Please try again.