Skip to content

Instantly share code, notes, and snippets.

@sethhall
Created April 29, 2013 17:04
Show Gist options
  • Select an option

  • Save sethhall/5483039 to your computer and use it in GitHub Desktop.

Select an option

Save sethhall/5483039 to your computer and use it in GitHub Desktop.
tiny ssh patch
diff --git a/scripts/base/protocols/ssh/main.bro b/scripts/base/protocols/ssh/main.bro
index cd20f4e..a8b784f 100644
--- a/scripts/base/protocols/ssh/main.bro
+++ b/scripts/base/protocols/ssh/main.bro
@@ -108,6 +108,8 @@ function check_ssh_connection(c: connection, done: bool)
if ( c$ssh$done )
return;
+ lookup_connection(c$id);
+
# Make sure conn_size_analyzer is active by checking
# resp$num_bytes_ip. In general it should always be active though.
if ( ! c$resp?$num_bytes_ip )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment