mirror of
https://github.com/transmission/transmission.git
synced 2025-12-19 18:08:31 +00:00
fix: 3579 assertion when RPC client asks for torrent-id 0 (#3683)
Fixes #3579.
This commit is contained in:
@@ -44,7 +44,6 @@ struct CompareTorrentByHash
|
||||
|
||||
tr_torrent* tr_torrents::get(tr_torrent_id_t id)
|
||||
{
|
||||
TR_ASSERT(0 < id);
|
||||
TR_ASSERT(static_cast<size_t>(id) < std::size(by_id_));
|
||||
if (static_cast<size_t>(id) >= std::size(by_id_))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user