diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2021-04-22 01:51:01 -0400 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2021-04-22 01:51:01 -0400 |
| commit | 0a1ddc2eff854f3e932203a95b65a9f1efd60eef (patch) | |
| tree | 92ea6f925aeebf5c57a11eaa6f74cda537f0916e /tests/fuzz/levin.cpp | |
| parent | b6a8cfc41ba053043f2f4654b6b7d0a55af36f75 (diff) | |
| parent | 679d05567d1b69b4d51ca80ddc3e58de877814df (diff) | |
| download | monzero-core-0a1ddc2eff854f3e932203a95b65a9f1efd60eef.tar.gz monzero-core-0a1ddc2eff854f3e932203a95b65a9f1efd60eef.tar.xz monzero-core-0a1ddc2eff854f3e932203a95b65a9f1efd60eef.zip | |
Merge pull request #7669
679d055 Remove payload copy in all outgoing p2p messages (Lee Clagett)
Diffstat (limited to 'tests/fuzz/levin.cpp')
| -rw-r--r-- | tests/fuzz/levin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fuzz/levin.cpp b/tests/fuzz/levin.cpp index 78b7b6863..209a75221 100644 --- a/tests/fuzz/levin.cpp +++ b/tests/fuzz/levin.cpp @@ -68,13 +68,13 @@ namespace { } - virtual int invoke(int command, const epee::span<const uint8_t> in_buff, epee::byte_slice& buff_out, test_levin_connection_context& context) + virtual int invoke(int command, const epee::span<const uint8_t> in_buff, epee::byte_stream& buff_out, test_levin_connection_context& context) { m_invoke_counter.inc(); boost::unique_lock<boost::mutex> lock(m_mutex); m_last_command = command; m_last_in_buf = std::string((const char*)in_buff.data(), in_buff.size()); - buff_out = m_invoke_out_buf.clone(); + buff_out.write(epee::to_span(m_invoke_out_buf)); return m_return_code; } |
