]> git.pld-linux.org Git - packages/libtorrent.git/blob - libtorrent-bencoded-error.patch
- release 2
[packages/libtorrent.git] / libtorrent-bencoded-error.patch
1 diff --git a/src/tracker/tracker_http.cc b/src/tracker/tracker_http.cc
2 index 6dbd0f5..48ab5a5 100644
3 --- a/src/tracker/tracker_http.cc
4 +++ b/src/tracker/tracker_http.cc
5 @@ -276,8 +276,11 @@ TrackerHttp::receive_done() {
6    Object b;
7    *m_data >> b;
8  
9 -  if (m_data->fail())
10 -    return receive_failed("Could not parse bencoded data");
11 +  if (m_data->fail()) {
12 +    std::stringstream dump;
13 +    dump << "Could not parse bencoded data: " << m_data->str();
14 +    return receive_failed(dump.str().c_str());
15 +  }
16  
17    if (!b.is_map())
18      return receive_failed("Root not a bencoded map");
This page took 0.080594 seconds and 3 git commands to generate.