mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
(trunk libT) #2651: "missing errmsg in RPC torrentSet" -- reported & patched by elbandi
This commit is contained in:
parent
857e37bf77
commit
bcd01fda3b
1 changed files with 4 additions and 4 deletions
|
@ -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 ) )
|
||||||
|
|
Loading…
Reference in a new issue