fixed bug in smart_ban (introduced when policy::peer allocation was changed)

This commit is contained in:
Arvid Norberg 2009-05-10 17:25:29 +00:00
parent 9523d88909
commit a14bc56520
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ namespace libtorrent { namespace
// there is no peer with this address anymore
if (range.first == range.second) return;
policy::peer* p = (policy::peer*)&(*range.first);
policy::peer* p = (*range.first);
block_entry e = {p, crc.final()};
std::map<piece_block, block_entry>::iterator i = m_block_crc.lower_bound(b);