mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Val: add TableVal::Assign() overload with IntrusivePtr
Prepare the transition to IntrusivePtr for various callers.
This commit is contained in:
parent
78712d009f
commit
0a6ddfb6b5
54 changed files with 379 additions and 365 deletions
|
@ -1366,7 +1366,7 @@ int TCP_Analyzer::ParseTCPOptions(const struct tcphdr* tcp, bool is_orig)
|
|||
|
||||
auto data_len = olen - 2;
|
||||
auto data = reinterpret_cast<const char*>(odata + 2);
|
||||
rv->Assign(2, new StringVal(data_len, data));
|
||||
rv->Assign(2, make_intrusive<StringVal>(data_len, data));
|
||||
};
|
||||
|
||||
for ( const auto& o : opts )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue