Added check for connection existence

Added a check for connection existence before trying to remove the RDP analyzer from a connection.
This commit is contained in:
jshlbrd 2015-02-15 23:04:31 -08:00
parent b1614b7fe9
commit 8a5bb0f6a7

View file

@ -100,7 +100,7 @@ event log_record(c: connection, remove_analyzer: bool)
verify_rdp(c);
# Remove the analyzer if it is still attached.
if ( remove_analyzer && disable_analyzer_after_detection && c$rdp?$analyzer_id )
if ( remove_analyzer && disable_analyzer_after_detection && connection_exists(c$id) && c$rdp?$analyzer_id )
{
disable_analyzer(c$id, c$rdp$analyzer_id);
delete c$rdp$analyzer_id;