Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/analysisd/alerts/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ void OS_LogOutput(Eventinfo *lf)
{
#ifdef LIBGEOIP_ENABLED
if (Config.geoipdb_file) {
if (lf->srcip) {
lf->srcgeoip = GetGeoInfobyIP(lf->srcip);
if (lf->srcip && !lf->srcgeoip) {
lf->srcgeoip = GetGeoInfobyIP(lf->srcip);
}
if (lf->dstip) {
lf->dstgeoip = GetGeoInfobyIP(lf->dstip);
if (lf->dstip && !lf->dstgeoip) {
lf->dstgeoip = GetGeoInfobyIP(lf->dstip);
}
}
#endif
Expand Down Expand Up @@ -169,11 +169,11 @@ void OS_Log(Eventinfo *lf)
{
#ifdef LIBGEOIP_ENABLED
if (Config.geoipdb_file) {
if (lf->srcip) {
lf->srcgeoip = GetGeoInfobyIP(lf->srcip);
if (lf->srcip && !lf->srcgeoip) {
lf->srcgeoip = GetGeoInfobyIP(lf->srcip);
}
if (lf->dstip) {
lf->dstgeoip = GetGeoInfobyIP(lf->dstip);
if (lf->dstip && !lf->dstgeoip) {
lf->dstgeoip = GetGeoInfobyIP(lf->dstip);
}
}
#endif
Expand Down
4 changes: 0 additions & 4 deletions src/analysisd/rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -1228,10 +1228,6 @@ int Rules_OP_ReadRules(const char *rulefile)

/* Mark rules that match this id */
OS_MarkID(NULL, config_ruleinfo);

/* Set function pointer */
config_ruleinfo->event_search = (void *(*)(void *, void *))
Search_LastEvents;
}

/* Mark the rules that match if_matched_group */
Expand Down