diff --git a/include/libtorrent/http_seed_connection.hpp b/include/libtorrent/http_seed_connection.hpp index 1aba8759e..ee308a3fa 100644 --- a/include/libtorrent/http_seed_connection.hpp +++ b/include/libtorrent/http_seed_connection.hpp @@ -111,6 +111,8 @@ namespace libtorrent // if it's changed referencing back into that list will fail const std::string m_url; + web_seed_entry* m_web; + // the number of bytes left to receive of the response we're // currently parsing size_type m_response_left; diff --git a/src/http_seed_connection.cpp b/src/http_seed_connection.cpp index 42d40697f..ff8f9287b 100644 --- a/src/http_seed_connection.cpp +++ b/src/http_seed_connection.cpp @@ -56,6 +56,7 @@ namespace libtorrent , web_seed_entry& web) : web_connection_base(pack, web) , m_url(web.url) + , m_web(&web) , m_response_left(0) , m_chunk_pos(0) , m_partial_chunk_header(0)