fixed exception issue when tracker sends invalid response
This commit is contained in:
parent
b4c160e723
commit
8b5172d439
|
@ -225,7 +225,14 @@ namespace libtorrent
|
|||
}
|
||||
|
||||
// handle tracker response
|
||||
entry e = bdecode(data, data + size);
|
||||
entry e;
|
||||
#ifndef BOOST_NO_EXCEPTIONS
|
||||
try {
|
||||
#endif
|
||||
e = bdecode(data, data + size);
|
||||
#ifndef BOOST_NO_EXCEPTIONS
|
||||
} catch (std::exception&) {}
|
||||
#endif
|
||||
|
||||
if (e.type() != entry::undefined_t)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue