Changeset 9687


Ignore:
Timestamp:
Dec 9, 2009, 1:36:31 AM (12 years ago)
Author:
charles
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rpcimpl.c

    r9671 r9687  
    757757            if( tr_isPriority( tmp ) )
    758758                tr_torrentSetPriority( tor, tmp );
    759         if( tr_bencDictFindList( args_in, "files-unwanted", &files ) )
    760             setFileDLs( tor, FALSE, files );
    761         if( tr_bencDictFindList( args_in, "files-wanted", &files ) )
    762             setFileDLs( tor, TRUE, files );
     759        if( !errmsg && tr_bencDictFindList( args_in, "files-unwanted", &files ) )
     760            errmsg = setFileDLs( tor, FALSE, files );
     761        if( !errmsg && tr_bencDictFindList( args_in, "files-wanted", &files ) )
     762            errmsg = setFileDLs( tor, TRUE, files );
    763763        if( tr_bencDictFindInt( args_in, "peer-limit", &tmp ) )
    764764            tr_torrentSetPeerLimit( tor, tmp );
Note: See TracChangeset for help on using the changeset viewer.