Set c$conn (for logging) in new_connection() event.

c$conn was originally set in connection_established(), which is only
used by TCP connections, and in connection_state_remove(). Using
new_connection() allows us to have c$conn available for any connection
and for any script that wants to extend logging to conn.log.
This commit is contained in:
Gregor Maier 2011-08-11 15:29:54 -07:00
parent eacfbea3fe
commit 95d84da1b0

View file

@ -200,7 +200,7 @@ function set_conn(c: connection, eoc: bool)
} }
} }
event connection_established(c: connection) &priority=5 event new_connection(c: connection) &priority=5
{ {
set_conn(c, F); set_conn(c, F);
} }