From: Mitchell Livingston Date: Wed, 14 Nov 2012 02:22:55 +0000 (+0000) Subject: #5134 Magnet links not adding all trackers with tr.0= X-Git-Tag: 2.74~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6bebaee6393c352816f978984cc0c8987da443ab;p=transmission #5134 Magnet links not adding all trackers with tr.0= --- 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 ); }