Bug in Connection::FlipRoles

Description

This method doesn't correctly swap address values.

Also, since scheduled analyzers for a connection are looked up based on the endpoint addresses, it's possible they will miss being attached to connections that end up taking the Connection::FlipRoles code path. An idea to fix would be just to have FlipRoles do a check for scheduled analyzers on the new connection tuple and attach any that turn up.

(These were reported by Kevin McMahon on the bro-dev list).

Environment

None

Assignee

Unassigned

Reporter

Jon Siwek

Labels

None

External issue ID

None

Components

Fix versions

Affects versions

Priority

Normal
Configure