mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Add some additional std::moves reported by Coverity
This commit is contained in:
parent
2ce26f1be0
commit
205c72d26f
19 changed files with 27 additions and 26 deletions
|
@ -216,7 +216,8 @@ bool Manager::PermitUnknownProtocol(const std::string& analyzer, uint32_t protoc
|
|||
++count;
|
||||
|
||||
if ( count == 1 )
|
||||
zeek::detail::timer_mgr->Add(new UnknownProtocolTimer(run_state::network_time, p, unknown_sampling_duration));
|
||||
zeek::detail::timer_mgr->Add(
|
||||
new UnknownProtocolTimer(run_state::network_time, std::move(p), unknown_sampling_duration));
|
||||
|
||||
if ( count < unknown_sampling_threshold )
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue