From ac418d59352cd49145c7c02a5605ad72a4982f33 Mon Sep 17 00:00:00 2001 From: John Garland Date: Sun, 17 May 2009 12:19:14 +0000 Subject: [PATCH] Potential patch for libtorrent @ 3507 --- libtorrent.diff | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 libtorrent.diff diff --git a/libtorrent.diff b/libtorrent.diff new file mode 100644 index 000000000..b54b32d34 --- /dev/null +++ b/libtorrent.diff @@ -0,0 +1,26 @@ +Index: libtorrent/src/storage.cpp +=================================================================== +--- libtorrent/src/storage.cpp (revision 3507) ++++ libtorrent/src/storage.cpp (working copy) +@@ -2228,7 +2228,7 @@ + && m_storage->error() != error_code(ENOENT, get_posix_category())) + #endif + { +- m_piece_data.reset(); ++ m_piece_data.clear(); + return -1; + } + return 1; +Index: libtorrent/src/policy.cpp +=================================================================== +--- libtorrent/src/policy.cpp (revision 3507) ++++ libtorrent/src/policy.cpp (working copy) +@@ -659,7 +659,7 @@ + #endif + i->second.inet_as = ses.lookup_as(as); + #endif +- i->source = peer_info::incoming; ++ i->second.source = peer_info::incoming; + } + + c.set_peer_info(&i->second);