From a14bc5652048003c12d41451fc1b433b8d1d38f6 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 10 May 2009 17:25:29 +0000 Subject: [PATCH] fixed bug in smart_ban (introduced when policy::peer allocation was changed) --- src/smart_ban.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smart_ban.cpp b/src/smart_ban.cpp index dfdf585ab..d7d3c2e41 100644 --- a/src/smart_ban.cpp +++ b/src/smart_ban.cpp @@ -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::iterator i = m_block_crc.lower_bound(b);