the reserved bits are only 8 bytes

This commit is contained in:
Arvid Norberg 2009-02-13 07:17:20 +00:00
parent 63a2522014
commit 2a9605f9db
2 changed files with 2 additions and 2 deletions

View File

@ -370,7 +370,7 @@ private:
// the peer indicated that it supports the
// extension protocol
bool m_supports_extensions;
char m_reserved_bits[20];
char m_reserved_bits[8];
#endif
bool m_supports_dht_port;
bool m_supports_fast;

View File

@ -2463,7 +2463,7 @@ namespace libtorrent
#endif
#ifndef DISABLE_EXTENSIONS
std::memcpy(m_reserved_bits, recv_buffer.begin, 20);
std::memcpy(m_reserved_bits, recv_buffer.begin, 8);
if ((recv_buffer[5] & 0x10))
m_supports_extensions = true;
#endif