mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00
Deprecate BuildConnVal() methods and update usages to ConnVal()
The later being a new method that returns IntrusivePtr
This commit is contained in:
parent
094d6de979
commit
2a63e4a4a2
41 changed files with 208 additions and 189 deletions
|
@ -145,7 +145,7 @@ bool File::UpdateConnectionFields(Connection* conn, bool is_orig)
|
|||
return false;
|
||||
}
|
||||
|
||||
conns->AsTableVal()->Assign(idx, conn->BuildConnVal());
|
||||
conns->AsTableVal()->Assign(idx, conn->ConnVal());
|
||||
Unref(idx);
|
||||
return true;
|
||||
}
|
||||
|
@ -156,7 +156,7 @@ void File::RaiseFileOverNewConnection(Connection* conn, bool is_orig)
|
|||
{
|
||||
FileEvent(file_over_new_connection, {
|
||||
IntrusivePtr{NewRef{}, val},
|
||||
IntrusivePtr{AdoptRef{}, conn->BuildConnVal()},
|
||||
conn->ConnVal(),
|
||||
val_mgr->Bool(is_orig),
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue