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); analyzer::tcp::TCP_ApplicationAnalyzer::DeliverStream(len, data, orig);
assert(TCP()); if ( TCP() && TCP()->IsPartial() )
if ( TCP()->IsPartial() )
return; return;
if ( had_gap ) if ( had_gap )

View file

@ -15,7 +15,7 @@ public:
explicit SSL_Analyzer(Connection* conn); explicit SSL_Analyzer(Connection* conn);
~SSL_Analyzer() override; ~SSL_Analyzer() override;
// Overriden from Analyzer. // Overridden from Analyzer.
void Done() override; void Done() override;
void DeliverStream(int len, const u_char* data, bool orig) override; void DeliverStream(int len, const u_char* data, bool orig) override;
void Undelivered(uint64_t seq, int len, bool orig) override; void Undelivered(uint64_t seq, int len, bool orig) override;
@ -27,7 +27,7 @@ public:
// Get the TLS version that the server chose. 0 if not yet known. // Get the TLS version that the server chose. 0 if not yet known.
uint16_t GetNegotiatedVersion() const; uint16_t GetNegotiatedVersion() const;
// Overriden from analyzer::tcp::TCP_ApplicationAnalyzer. // Overridden from analyzer::tcp::TCP_ApplicationAnalyzer.
void EndpointEOF(bool is_orig) override; void EndpointEOF(bool is_orig) override;
static analyzer::Analyzer* Instantiate(Connection* conn) static analyzer::Analyzer* Instantiate(Connection* conn)