(trunk libT) #5075 'magnet.c:163 should use MAX_WEBSEEDS, not MAX_TRACKERS' ... fixed. Thanks to cfpp2p for catching this.

This commit is contained in:
Jordan Lee 2012-10-05 16:10:12 +00:00
parent f07fe8b4d4
commit cc51b1586c
1 changed files with 1 additions and 1 deletions

View File

@ -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;