(trunk libT) #2284: crashes when some invalid torrents are added. reported by Flemzard in irc
This commit is contained in:
parent
75584d81ac
commit
44d785f9ca
|
@ -720,6 +720,9 @@ tr_torrentParse( const tr_ctor * ctor, tr_info * setmeInfo )
|
|||
didParse = tr_metainfoParse( session, setmeInfo, metainfo );
|
||||
doFree = didParse && ( setmeInfo == &tmp );
|
||||
|
||||
if( !didParse )
|
||||
result = TR_PARSE_ERR;
|
||||
|
||||
if( didParse && !getBlockSize( setmeInfo->pieceSize ) )
|
||||
result = TR_PARSE_ERR;
|
||||
|
||||
|
|
Loading…
Reference in New Issue