mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Fixing some issues from rebasing
This commit is contained in:
parent
45fa4c0dc4
commit
77c555a3a8
21 changed files with 85 additions and 158 deletions
|
@ -3973,12 +3973,11 @@ const PortValPtr& ValManager::Port(uint32_t port_num, TransportProto port_type)
|
|||
port_num = 0;
|
||||
}
|
||||
|
||||
|
||||
std::pair key{port_num, port_type};
|
||||
if (ports.find(key) == ports.end())
|
||||
{
|
||||
if ( ports.find(key) == ports.end() )
|
||||
{
|
||||
ports[key] = IntrusivePtr{AdoptRef{}, new PortVal(PortVal::Mask(port_num, port_type))};
|
||||
}
|
||||
}
|
||||
|
||||
return ports[key];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue