diff options
author | SChernykh <sergey.v.chernykh@gmail.com> | 2022-02-19 10:17:53 +0100 |
---|---|---|
committer | SChernykh <sergey.v.chernykh@gmail.com> | 2022-02-19 10:17:53 +0100 |
commit | f68f92776baf89b65db41314102663be533cdb1a (patch) | |
tree | 0ac380e4d1f427701bf8db61eb1fe77115d0c773 /contrib/epee/include/net/levin_client_async.h | |
parent | Merge pull request #8135 (diff) | |
download | monero-f68f92776baf89b65db41314102663be533cdb1a.tar.xz |
Undefined behaviour fixes
Fixes issues reported in #8120
Diffstat (limited to 'contrib/epee/include/net/levin_client_async.h')
-rw-r--r-- | contrib/epee/include/net/levin_client_async.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/epee/include/net/levin_client_async.h b/contrib/epee/include/net/levin_client_async.h index ed92f4b95..067707edf 100644 --- a/contrib/epee/include/net/levin_client_async.h +++ b/contrib/epee/include/net/levin_client_async.h @@ -242,7 +242,7 @@ namespace levin bucket_head head = {0}; head.m_signature = LEVIN_SIGNATURE; head.m_cb = in_buff.size(); - head.m_have_to_return_data = true; + head.m_have_to_return_data = 1; head.m_id = target; #ifdef TRACE_LEVIN_PACKETS_BY_GUIDS ::UuidCreate(&head.m_id); @@ -320,7 +320,7 @@ namespace levin bucket_head head = {0}; head.m_signature = LEVIN_SIGNATURE; head.m_cb = in_buff.size(); - head.m_have_to_return_data = false; + head.m_have_to_return_data = 0; head.m_id = target; #ifdef TRACE_LEVIN_PACKETS_BY_GUIDS ::UuidCreate(&head.m_id); @@ -510,7 +510,7 @@ namespace levin head.m_cb = return_buff.size(); - head.m_have_to_return_data = false; + head.m_have_to_return_data = 0; head.m_protocol_version = LEVIN_PROTOCOL_VER_1; head.m_flags = LEVIN_PACKET_RESPONSE; |