From 9afec7370bf8057e26cd0116a303d6ac3b0cab4d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 5 Apr 2005 17:39:36 +0000 Subject: [PATCH] fixed udp-tracker connection bug --- src/udp_tracker_connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/udp_tracker_connection.cpp b/src/udp_tracker_connection.cpp index 3d534dda2..917bda246 100755 --- a/src/udp_tracker_connection.cpp +++ b/src/udp_tracker_connection.cpp @@ -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(