mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
Switch OpaqueVal::UnserializeType() to return IntrusivePtr
This commit is contained in:
parent
83f1a911d7
commit
43f513ca44
3 changed files with 13 additions and 11 deletions
|
@ -479,12 +479,12 @@ bool TopkVal::DoUnserialize(const broker::data& data)
|
|||
auto no_type = caf::get_if<broker::none>(&(*v)[3]);
|
||||
if ( ! no_type )
|
||||
{
|
||||
BroType* t = UnserializeType((*v)[3]);
|
||||
auto t = UnserializeType((*v)[3]);
|
||||
|
||||
if ( ! t )
|
||||
return false;
|
||||
|
||||
Typify(t);
|
||||
Unref(t);
|
||||
Typify(t.get());
|
||||
}
|
||||
|
||||
uint64_t i = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue