mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
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:
parent
b1614b7fe9
commit
8a5bb0f6a7
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ event log_record(c: connection, remove_analyzer: bool)
|
||||||
verify_rdp(c);
|
verify_rdp(c);
|
||||||
|
|
||||||
# Remove the analyzer if it is still attached.
|
# 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);
|
disable_analyzer(c$id, c$rdp$analyzer_id);
|
||||||
delete c$rdp$analyzer_id;
|
delete c$rdp$analyzer_id;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue