Skip to content

Stale data after auto_reload on same IP lookup#135

Open
dark264sh wants to merge 1 commit intoleev:masterfrom
dark264sh:fix_auto_reload
Open

Stale data after auto_reload on same IP lookup#135
dark264sh wants to merge 1 commit intoleev:masterfrom
dark264sh:fix_auto_reload

Conversation

@dark264sh
Copy link
Copy Markdown

After auto-reloading the MMDB, clear the cached 'database->address'.
If not cleared, a subsequent lookup for the same IP would reuse the stale 'database->result' (containing pointers/offsets from the old DB), leading to incorrect data retrieval from the new DB instance.

#134

After auto-reloading the MMDB, clear the cached 'database->address'.
If not cleared, a subsequent lookup for the same IP would reuse the
stale 'database->result' (containing pointers/offsets from the *old* DB),
leading to incorrect data retrieval from the *new* DB instance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant