mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
analyzer/HTTP: Call TCP_ApplicationAnalyzer::Done() after RequestMade()/ReplyMade()
This commit is contained in:
parent
fa956efa79
commit
6ef9423f3c
1 changed files with 6 additions and 2 deletions
|
@ -849,11 +849,15 @@ void HTTP_Analyzer::Done()
|
||||||
if ( IsFinished() )
|
if ( IsFinished() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
analyzer::tcp::TCP_ApplicationAnalyzer::Done();
|
|
||||||
|
|
||||||
RequestMade(true, "message interrupted when connection done");
|
RequestMade(true, "message interrupted when connection done");
|
||||||
ReplyMade(true, "message interrupted when connection done");
|
ReplyMade(true, "message interrupted when connection done");
|
||||||
|
|
||||||
|
// Call Done() on support and child analyzers only after RequestMade()
|
||||||
|
// and ReplyMade() completed. These methods may interact with the analyzer's
|
||||||
|
// child analyzers (specifically through HTTP_Entity's EndOfData() and
|
||||||
|
// ForwardEndOfData()) which isn't valid after a call to Done().
|
||||||
|
analyzer::tcp::TCP_ApplicationAnalyzer::Done();
|
||||||
|
|
||||||
delete request_message;
|
delete request_message;
|
||||||
request_message = nullptr;
|
request_message = nullptr;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue