diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-08-29 14:36:41 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-08-29 14:36:41 -0500 |
commit | 98af2e954b78dc7607d0236a9db84b2143a33a90 (patch) | |
tree | 4e9be3baf6c4693d4e79fa105991afddd6402494 /tests/fuzz | |
parent | Merge pull request #5707 (diff) | |
parent | Added support for "noise" over I1P/Tor to mask Tx transmission. (diff) | |
download | monero-98af2e954b78dc7607d0236a9db84b2143a33a90.tar.xz |
Merge pull request #5793
bdfc63a Add ref-counted buffer byte_slice. Currently used for sending TCP data. (vtnerd)
3b24b1d Added support for 'noise' over I1P/Tor to mask Tx transmission. (vtnerd)
Diffstat (limited to 'tests/fuzz')
-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 fe9ef418e..6c16a0a85 100644 --- a/tests/fuzz/levin.cpp +++ b/tests/fuzz/levin.cpp @@ -149,11 +149,11 @@ namespace } // Implement epee::net_utils::i_service_endpoint interface - virtual bool do_send(const void* ptr, size_t cb) + virtual bool do_send(epee::byte_slice message) { m_send_counter.inc(); boost::unique_lock<boost::mutex> lock(m_mutex); - m_last_send_data.append(reinterpret_cast<const char*>(ptr), cb); + m_last_send_data.append(reinterpret_cast<const char*>(message.data()), message.size()); return m_send_return; } |