fixed udp-tracker connection bug

This commit is contained in:
Arvid Norberg 2005-04-05 17:39:36 +00:00
parent b786ec9125
commit 9afec7370b
1 changed files with 2 additions and 2 deletions

View File

@ -260,8 +260,8 @@ namespace libtorrent
int interval = detail::read_int32(buf);
int incomplete = detail::read_int32(buf);
int complete = detail::read_int32(buf);
int num_peers = (len - 24) / 6;
if ((len - 24) % 6 != 0)
int num_peers = (len - 20) / 6;
if ((len - 20) % 6 != 0)
{
if (has_requester())
requester().tracker_request_error(