1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-20 13:16:53 +00:00

#2673 crash in tr_torrentGetMetadataPiece

This commit is contained in:
Eric Petit 2009-12-15 15:19:08 +00:00
parent 4fe9c73444
commit 5fb945653f
2 changed files with 2 additions and 2 deletions

View file

@ -24,8 +24,8 @@ struct tr_magnet_info;
tr_bool tr_metainfoParse( const tr_session * session,
tr_info * setmeInfo,
int * setmeInfoDictLength,
int * setmeInfoDictOffset,
int * setmeInfoDictLength,
const struct tr_benc * benc );
void tr_metainfoRemoveSaved( const tr_session * session,

View file

@ -207,8 +207,8 @@ tr_torrentSetMetadataPiece( tr_torrent * tor,
{
if( tr_metainfoParse( tor->session,
&tor->info,
&tor->infoDictLength,
&tor->infoDictOffset,
&tor->infoDictLength,
&dict ) )
{
const char * path = tor->info.torrent;