ignore invalid entries in 'announce-list' instead of aborting

This commit is contained in:
Arvid Norberg 2008-05-14 19:44:36 +00:00
parent 7e428db4ca
commit 16a8aa88e8
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ namespace libtorrent
for (int j = 0, end(i->list_size()); j < end; ++j) for (int j = 0, end(i->list_size()); j < end; ++j)
{ {
lazy_entry const* tier = i->list_at(j); lazy_entry const* tier = i->list_at(j);
if (tier->type() != lazy_entry::list_t) break; if (tier->type() != lazy_entry::list_t) continue;
for (int k = 0, end(tier->list_size()); k < end; ++k) for (int k = 0, end(tier->list_size()); k < end; ++k)
{ {
announce_entry e(tier->list_string_value_at(k)); announce_entry e(tier->list_string_value_at(k));