From 6bebaee6393c352816f978984cc0c8987da443ab Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 14 Nov 2012 02:22:55 +0000 Subject: [PATCH] #5134 Magnet links not adding all trackers with tr.0= --- libtransmission/magnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/magnet.c b/libtransmission/magnet.c index 7cd21ae8d..9265d4b04 100644 --- a/libtransmission/magnet.c +++ b/libtransmission/magnet.c @@ -156,7 +156,7 @@ tr_magnetParse( const char * uri ) int i; if( ( keylen==2 ) && !memcmp( key, "tr", 2 ) ) tr[trCount++] = tr_http_unescape( val, vallen ); - else if( ( sscanf( key, "tr.%d=", &i ) == 1 ) && ( i > 0 ) ) /* ticket #3341 */ + else if( ( sscanf( key, "tr.%d=", &i ) == 1 ) && ( i >= 0 ) ) /* ticket #3341 and #5134 */ tr[trCount++] = tr_http_unescape( val, vallen ); } -- 2.40.0