mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
Deprecate TableVal::ConvertToList() and TableVal::ConvertToPureList()
Replaced with ToListVal() and ToPureListVal() that return IntrusivePtr
This commit is contained in:
parent
5f57ceb70a
commit
b096e552d3
10 changed files with 37 additions and 38 deletions
|
@ -1218,11 +1218,10 @@ bool NetSessions::IsLikelyServerPort(uint32_t port, TransportProto proto) const
|
|||
|
||||
if ( ! have_cache )
|
||||
{
|
||||
ListVal* lv = likely_server_ports->ConvertToPureList();
|
||||
auto lv = likely_server_ports->ToPureListVal();
|
||||
for ( int i = 0; i < lv->Length(); i++ )
|
||||
port_cache.insert(lv->Idx(i)->InternalUnsigned());
|
||||
have_cache = true;
|
||||
Unref(lv);
|
||||
}
|
||||
|
||||
// We exploit our knowledge of PortVal's internal storage mechanism
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue