Replace assert with if statement so OpenVPN can use this over UDP. And fix spelling.

This commit is contained in:
Keith Jones 2021-03-05 10:53:46 -05:00
parent b8ec65ccf7
commit 6fa02a7db4
2 changed files with 3 additions and 4 deletions

View file

@ -57,8 +57,7 @@ void SSL_Analyzer::DeliverStream(int len, const u_char* data, bool orig)
{
analyzer::tcp::TCP_ApplicationAnalyzer::DeliverStream(len, data, orig);
assert(TCP());
if ( TCP()->IsPartial() )
if ( TCP() && TCP()->IsPartial() )
return;
if ( had_gap )