From 5ee6f9b9784289c5c4f665c90eff4a138f4d194b Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sun, 7 Jun 2015 23:48:33 +0900 Subject: [PATCH] Windows build fix. --- libp2p/RLPxHandshake.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/RLPxHandshake.cpp b/libp2p/RLPxHandshake.cpp index b8faf0e3e..8caf6e4f3 100644 --- a/libp2p/RLPxHandshake.cpp +++ b/libp2p/RLPxHandshake.cpp @@ -214,7 +214,7 @@ void RLPXHandshake::transition(boost::system::error_code _ech) else { /// authenticate and decrypt header - if (!m_io->authAndDecryptHeader(bytesRef(m_handshakeInBuffer.data(), handshakeSize))) + if (!m_io->authAndDecryptHeader(bytesRef(m_handshakeInBuffer.data(), m_handshakeInBuffer.size()))) { m_nextState = Error; transition();