mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
dht array index out of bound fix
This commit is contained in:
parent
1b5bfaaad1
commit
6a693d10ab
1 changed files with 2 additions and 2 deletions
|
@ -229,8 +229,8 @@ void routing_table::node_failed(node_id const& id)
|
|||
{
|
||||
b.erase(i);
|
||||
TORRENT_ASSERT(m_lowest_active_bucket <= bucket_index);
|
||||
while (m_buckets[m_lowest_active_bucket].first.empty()
|
||||
&& m_lowest_active_bucket < 160)
|
||||
while (m_lowest_active_bucket < 160
|
||||
&& m_buckets[m_lowest_active_bucket].first.empty())
|
||||
{
|
||||
++m_lowest_active_bucket;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue