1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

(trunk libT) #2651: "missing errmsg in RPC torrentSet" -- reported & patched by elbandi

This commit is contained in:
Charles Kerr 2009-12-09 01:36:31 +00:00
parent 857e37bf77
commit bcd01fda3b

View file

@ -756,10 +756,10 @@ torrentSet( tr_session * session,
if( tr_bencDictFindInt( args_in, "bandwidthPriority", &tmp ) ) if( tr_bencDictFindInt( args_in, "bandwidthPriority", &tmp ) )
if( tr_isPriority( tmp ) ) if( tr_isPriority( tmp ) )
tr_torrentSetPriority( tor, tmp ); tr_torrentSetPriority( tor, tmp );
if( tr_bencDictFindList( args_in, "files-unwanted", &files ) ) if( !errmsg && tr_bencDictFindList( args_in, "files-unwanted", &files ) )
setFileDLs( tor, FALSE, files ); errmsg = setFileDLs( tor, FALSE, files );
if( tr_bencDictFindList( args_in, "files-wanted", &files ) ) if( !errmsg && tr_bencDictFindList( args_in, "files-wanted", &files ) )
setFileDLs( tor, TRUE, files ); errmsg = setFileDLs( tor, TRUE, files );
if( tr_bencDictFindInt( args_in, "peer-limit", &tmp ) ) if( tr_bencDictFindInt( args_in, "peer-limit", &tmp ) )
tr_torrentSetPeerLimit( tor, tmp ); tr_torrentSetPeerLimit( tor, tmp );
if( !errmsg && tr_bencDictFindList( args_in, "priority-high", &files ) ) if( !errmsg && tr_bencDictFindList( args_in, "priority-high", &files ) )