fixed crash when providing corrupt resume data
This commit is contained in:
parent
dbf6b0a02c
commit
e94963d085
|
@ -1,4 +1,5 @@
|
||||||
|
|
||||||
|
* fixed crash when providing corrupt resume data
|
||||||
* fixed support for boost-1.44
|
* fixed support for boost-1.44
|
||||||
* fixed reversed semantics of queue_up() and queue_down()
|
* fixed reversed semantics of queue_up() and queue_down()
|
||||||
* added missing functions to python bindings (file_priority(), set_dht_settings())
|
* added missing functions to python bindings (file_priority(), set_dht_settings())
|
||||||
|
|
|
@ -868,6 +868,7 @@ namespace libtorrent
|
||||||
+ m_resume_data.size(), m_resume_entry, ec, &pos) != 0)
|
+ m_resume_data.size(), m_resume_entry, ec, &pos) != 0)
|
||||||
{
|
{
|
||||||
std::vector<char>().swap(m_resume_data);
|
std::vector<char>().swap(m_resume_data);
|
||||||
|
lazy_entry().swap(m_resume_entry);
|
||||||
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING || defined TORRENT_ERROR_LOGGING
|
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING || defined TORRENT_ERROR_LOGGING
|
||||||
(*m_ses.m_logger) << time_now_string() << " fastresume data for "
|
(*m_ses.m_logger) << time_now_string() << " fastresume data for "
|
||||||
<< torrent_file().name() << " rejected: " << ec.message()
|
<< torrent_file().name() << " rejected: " << ec.message()
|
||||||
|
|
Loading…
Reference in New Issue