mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
(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:
parent
f07fe8b4d4
commit
cc51b1586c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue