From 056b53ee088684d174864400168b8a420ae65860 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 8 May 2010 20:51:26 +0000 Subject: [PATCH] fixed bug in udp tracker scrape response parsing --- ChangeLog | 1 + src/udp_tracker_connection.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e8f202388..36e790f43 100644 --- a/ChangeLog +++ b/ChangeLog @@ -28,6 +28,7 @@ incoming connection * added more detailed instrumentation of the disk I/O thread + * fixed bug in udp tracker scrape response parsing * fixed bug in the disk thread that could get triggered under heavy load * fixed bug in add_piece() that would trigger asserts * fixed vs 2010 build diff --git a/src/udp_tracker_connection.cpp b/src/udp_tracker_connection.cpp index a474bcf43..34ea1812f 100644 --- a/src/udp_tracker_connection.cpp +++ b/src/udp_tracker_connection.cpp @@ -491,8 +491,6 @@ namespace libtorrent void udp_tracker_connection::on_scrape_response(char const* buf, int size) { - buf += 8; // skip header - restart_read_timeout(); int action = detail::read_int32(buf); int transaction = detail::read_int32(buf);