mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Merge remote-tracking branch 'origin/topic/timw/coverity'
* origin/topic/timw/coverity: Fix a couple of Coverity findings (1433618, 1433619)
This commit is contained in:
commit
e70f578621
4 changed files with 19 additions and 10 deletions
4
CHANGES
4
CHANGES
|
@ -1,4 +1,8 @@
|
|||
|
||||
3.3.0-dev.467 | 2020-10-21 11:06:18 -0700
|
||||
|
||||
* Fix a couple of Coverity findings (1433618, 1433619) (Tim Wojtulewicz, Corelight)
|
||||
|
||||
3.3.0-dev.465 | 2020-10-20 13:34:20 +0000
|
||||
|
||||
* Bump BTest to 0.64.
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
3.3.0-dev.465
|
||||
3.3.0-dev.467
|
||||
|
|
|
@ -693,18 +693,22 @@ bool NetSessions::WantConnection(uint16_t src_port, uint16_t dst_port,
|
|||
|
||||
void NetSessions::Weird(const char* name, const Packet* pkt, const char* addl)
|
||||
{
|
||||
const char* weird_name = name;
|
||||
|
||||
if ( pkt )
|
||||
{
|
||||
pkt->dump_packet = true;
|
||||
|
||||
const char* weird_name;
|
||||
if ( pkt->encap && pkt->encap->LastType() != BifEnum::Tunnel::NONE )
|
||||
weird_name = util::fmt("%s_in_tunnel", name);
|
||||
else
|
||||
weird_name = name;
|
||||
|
||||
if ( pkt->ip_hdr )
|
||||
{
|
||||
reporter->Weird(pkt->ip_hdr->SrcAddr(), pkt->ip_hdr->DstAddr(), weird_name, addl);
|
||||
else
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
reporter->Weird(weird_name, addl);
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ IPAnalyzer::IPAnalyzer()
|
|||
|
||||
IPAnalyzer::~IPAnalyzer()
|
||||
{
|
||||
delete discarder;
|
||||
}
|
||||
|
||||
bool IPAnalyzer::AnalyzePacket(size_t len, const uint8_t* data, Packet* packet)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue