forked from premiere/premiere-libtorrent
fixed bug in error handling when parsing torrent files
This commit is contained in:
parent
ecb922e013
commit
e1080a81c6
|
@ -94,6 +94,7 @@ release 0.14.7
|
|||
* announces torrents immediately to the DHT when it's started
|
||||
* fixed bug in add_files that would fail to recurse if the path
|
||||
ended with a /
|
||||
* fixed bug in error handling when parsing torrent files
|
||||
|
||||
release 0.14.6
|
||||
|
||||
|
|
|
@ -234,6 +234,7 @@ namespace libtorrent
|
|||
bool extract_single_file(lazy_entry const& dict, file_entry& target
|
||||
, std::string const& root_dir)
|
||||
{
|
||||
if (dict.type() != lazy_entry::dict_t) return false;
|
||||
lazy_entry const* length = dict.dict_find("length");
|
||||
if (length == 0 || length->type() != lazy_entry::int_t)
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue