From b210a8196709fd4f39b8aea9bec324d3d87ecc0e Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 7 Sep 2008 08:46:41 +0000 Subject: [PATCH] Prevent libtorrent from crashing when 'announce' is not in the tracker url. --- libtorrent/src/http_tracker_connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtorrent/src/http_tracker_connection.cpp b/libtorrent/src/http_tracker_connection.cpp index b87ee0a28..6a58c477b 100755 --- a/libtorrent/src/http_tracker_connection.cpp +++ b/libtorrent/src/http_tracker_connection.cpp @@ -91,8 +91,8 @@ namespace libtorrent std::size_t pos = url.find("announce"); if (pos == std::string::npos) { - fail(-1, ("scrape is not available on url: '" - + req.url +"'").c_str()); + //fail(-1, ("scrape is not available on url: '" + // + req.url +"'").c_str()); return; } url.replace(pos, 8, "scrape");