mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Fixed &read_expire for subnet-indexed tables
This commit is contained in:
parent
a5f4e8aafe
commit
d5034ccc19
1 changed files with 11 additions and 0 deletions
11
src/Val.cc
11
src/Val.cc
|
@ -1787,7 +1787,18 @@ Val* TableVal::Lookup(Val* index, bool use_default_val)
|
|||
{
|
||||
TableEntryVal* v = (TableEntryVal*) subnets->Lookup(index);
|
||||
if ( v )
|
||||
{
|
||||
if ( attrs &&
|
||||
! (attrs->FindAttr(ATTR_EXPIRE_WRITE) ||
|
||||
attrs->FindAttr(ATTR_EXPIRE_CREATE)) )
|
||||
{
|
||||
v->SetExpireAccess(network_time);
|
||||
if ( LoggingAccess() && expire_time )
|
||||
ReadOperation(index, v);
|
||||
}
|
||||
|
||||
return v->Value() ? v->Value() : this;
|
||||
}
|
||||
|
||||
if ( ! use_default_val )
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue