aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/net
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-11-12 10:12:23 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-11-12 10:12:23 +0000
commitcd929b89b07d68b0fe7884155f9f1cb54cbe1690 (patch)
treec80a6735beb0bf61730773d4bb65d193d077d83f /contrib/epee/include/net
parentMerge pull request #1316 (diff)
downloadmonero-cd929b89b07d68b0fe7884155f9f1cb54cbe1690.tar.xz
levin: fix wrong value passed as return code to remote call
When receiving an answer packet, the command code was passed to the callback instead of the error code. This was hiding the "command not found" failure from the peer, and in turn causing the code to attempt to deserialize a non existent reply string.
Diffstat (limited to 'contrib/epee/include/net')
-rw-r--r--contrib/epee/include/net/levin_protocol_handler_async.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/include/net/levin_protocol_handler_async.h b/contrib/epee/include/net/levin_protocol_handler_async.h
index be231a7e1..67daceaf5 100644
--- a/contrib/epee/include/net/levin_protocol_handler_async.h
+++ b/contrib/epee/include/net/levin_protocol_handler_async.h
@@ -373,7 +373,7 @@ public:
invoke_response_handlers_guard.unlock();
if(timer_cancelled)
- response_handler->handle(m_current_head.m_command, buff_to_invoke, m_connection_context);
+ response_handler->handle(m_current_head.m_return_code, buff_to_invoke, m_connection_context);
}
else
{