Skip to content

Commit

Permalink
Merge commit 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinAzoff committed Mar 12, 2010
2 parents 9e2badc + 31d84e4 commit dc6fd9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions smtp-ext.bro
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,15 @@ function end_smtp_extended_logging(c: connection)
}
}

# FIXME: I'm seeing crashes from this. We'll delay and just use the
# last element of the vector for the software event for now.
# reverse the "received from" path
sort(conn_log$path, function(a:addr, b:addr):int { return -1; });
#sort(conn_log$path, function(a:addr, b:addr):int { return -1; });
# if the MUA provided a user-agent string, raise the software event.
if ( conn_log$agent != "" )
{
local s = default_software_parsing(conn_log$agent);
event software_version_found(c, conn_log$path[1], s, "MUA");
event software_version_found(c, conn_log$path[|conn_log$path|], s, "MUA");
}

# Throw the event for other scripts to handle
Expand Down
3 changes: 2 additions & 1 deletion software-ext.bro
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ event bro_init()
LOG::create_logs("software-ext", logging, split_log_file, T);
LOG::define_header("software-ext", cat_sep("\t", "\\N",
"ts", "host",
"software", "version"));
"software", "version",
"description"));
}

# Compare two versions.
Expand Down

0 comments on commit dc6fd9e

Please sign in to comment.