From cc51b1586cc219dc3c75a87470df62a396b41540 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Fri, 5 Oct 2012 16:10:12 +0000 Subject: [PATCH] (trunk libT) #5075 'magnet.c:163 should use MAX_WEBSEEDS, not MAX_TRACKERS' ... fixed. Thanks to cfpp2p for catching this. --- libtransmission/magnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/magnet.c b/libtransmission/magnet.c index e3c4bd6cb..7cd21ae8d 100644 --- a/libtransmission/magnet.c +++ b/libtransmission/magnet.c @@ -160,7 +160,7 @@ tr_magnetParse( const char * uri ) tr[trCount++] = tr_http_unescape( val, vallen ); } - if( ( keylen==2 ) && !memcmp( key, "ws", 2 ) && ( wsCount < MAX_TRACKERS ) ) + if( ( vallen > 0 ) && ( keylen==2 ) && !memcmp( key, "ws", 2 ) && ( wsCount < MAX_WEBSEEDS ) ) ws[wsCount++] = tr_http_unescape( val, vallen ); walk = next != NULL ? next + 1 : NULL;