fix crash when passing in an uninitialized entry to session::load_state
This commit is contained in:
@@ -500,6 +500,7 @@ namespace libtorrent
|
||||
#ifndef TORRENT_NO_DEPRECATE
|
||||
void session::load_state(entry const& ses_state)
|
||||
{
|
||||
if (ses_state.type() == entry::undefined_t) return;
|
||||
std::vector<char> buf;
|
||||
bencode(std::back_inserter(buf), ses_state);
|
||||
lazy_entry e;
|
||||
|
Reference in New Issue
Block a user