mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Move port_masked variable inside #else block
This commit is contained in:
parent
266d36bee6
commit
a16bd28284
1 changed files with 2 additions and 1 deletions
|
@ -3998,10 +3998,11 @@ const PortValPtr& ValManager::Port(uint32_t port_num, TransportProto port_type)
|
|||
port_num = 0;
|
||||
}
|
||||
|
||||
auto port_masked = PortVal::Mask(port_num, port_type);
|
||||
#ifdef PREALLOCATE_PORT_ARRAY
|
||||
return ports[port_type][port_num];
|
||||
#else
|
||||
auto port_masked = PortVal::Mask(port_num, port_type);
|
||||
|
||||
if ( ports.count(port_masked) == 0 )
|
||||
ports.insert({port_masked, make_intrusive<PortVal>(port_masked)});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue