mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
Fix missing assigmnent operator/copy constructor pairings reported by LGTM
This commit is contained in:
parent
2f2a265415
commit
51f17534d4
3 changed files with 35 additions and 0 deletions
|
@ -76,6 +76,22 @@ public:
|
|||
~EncapsulatingConn()
|
||||
{}
|
||||
|
||||
EncapsulatingConn& operator=(const EncapsulatingConn& other)
|
||||
{
|
||||
if ( this != &other )
|
||||
{
|
||||
src_addr = other.src_addr;
|
||||
dst_addr = other.dst_addr;
|
||||
src_port = other.src_port;
|
||||
dst_port = other.dst_port;
|
||||
proto = other.proto;
|
||||
type = other.type;
|
||||
uid = other.uid;
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
BifEnum::Tunnel::Type Type() const
|
||||
{ return type; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue