SSH base scripts: make sure ConnSizeAnalyzer variables are available before using them.

This commit is contained in:
Gregor Maier 2011-08-11 12:20:38 -07:00
parent 7ea0646f30
commit 88f7db927e

View file

@ -88,6 +88,11 @@ function check_ssh_connection(c: connection, done: bool)
if ( c$ssh$done ) if ( c$ssh$done )
return; return;
# Make sure conn_size_analyzer is active by checking
# resp$num_bytes_ip
if ( !c$resp?$num_bytes_ip )
return;
# If this is still a live connection and the byte count has not # If this is still a live connection and the byte count has not
# crossed the threshold, just return and let the resheduled check happen later. # crossed the threshold, just return and let the resheduled check happen later.
if ( !done && c$resp$num_bytes_ip < authentication_data_size ) if ( !done && c$resp$num_bytes_ip < authentication_data_size )