Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed some bugs referred to GeoIP #984

Merged
merged 2 commits into from
Nov 3, 2016
Merged

Fixed some bugs referred to GeoIP #984

merged 2 commits into from
Nov 3, 2016

Conversation

vikman90
Copy link
Contributor

@vikman90 vikman90 commented Nov 2, 2016

This change should fix two issues:

When parsing rules with option <if_matched_sid> the searching function is assigned to Search_LastSids() and then it's overwritten with Search_LastEvents() (for rules with <check_diff>). This was done at commit 3a36fec, in fact the code to compare the geolocation string appears on Search_LastSids() and not at Search_LastEvents().

On the other hand, geolocation info is always reloaded when printing the alert, this may cause a memory leak. I propose to check that the geolocation string hasn't been yet created.

@ddpbsd ddpbsd merged commit 6ca53a1 into ossec:master Nov 3, 2016
@vikman90 vikman90 deleted the fix-geoip branch November 3, 2016 12:02
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.

2 participants