mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +00:00
Fix Coverity warning in RDP analyzer.
This commit is contained in:
parent
b0ee924aa2
commit
ffbeafb549
1 changed files with 9 additions and 7 deletions
|
@ -58,17 +58,19 @@ void RDP_Analyzer::DeliverStream(int len, const u_char* data, bool orig)
|
|||
{
|
||||
pia = new pia::PIA_TCP(Conn());
|
||||
|
||||
if ( AddChildAnalyzer(pia) )
|
||||
if ( ! AddChildAnalyzer(pia) )
|
||||
{
|
||||
pia->FirstPacket(true, 0);
|
||||
pia->FirstPacket(false, 0);
|
||||
reporter->AnalyzerError(this,
|
||||
"failed to add TCP child analyzer "
|
||||
"to RPD analyzer: already exists");
|
||||
return;
|
||||
}
|
||||
|
||||
pia->FirstPacket(true, 0);
|
||||
pia->FirstPacket(false, 0);
|
||||
}
|
||||
|
||||
if ( pia )
|
||||
{
|
||||
ForwardStream(len, data, orig);
|
||||
}
|
||||
ForwardStream(len, data, orig);
|
||||
}
|
||||
}
|
||||
else // if not encrypted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue