From d2852b6043b023bdf2640fe6397568726e9bbe92 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 20 Aug 2022 11:55:32 -0500 Subject: [PATCH] fix: 3579 assertion when RPC client asks for torrent-id 0 (#3683) Fixes #3579. --- libtransmission/torrents.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/libtransmission/torrents.cc b/libtransmission/torrents.cc index b6733a043..bc3819334 100644 --- a/libtransmission/torrents.cc +++ b/libtransmission/torrents.cc @@ -44,7 +44,6 @@ struct CompareTorrentByHash tr_torrent* tr_torrents::get(tr_torrent_id_t id) { - TR_ASSERT(0 < id); TR_ASSERT(static_cast(id) < std::size(by_id_)); if (static_cast(id) >= std::size(by_id_)) {