Changeset 10045


Ignore:
Timestamp:
Jan 29, 2010, 6:10:50 PM (12 years ago)
Author:
charles
Message:

(trunk libT) #2823 "crash in bsearch() while updating blocklist" -- fixed in trunk for 1.90

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r9965 r10045  
    18981898                        const char * contentFilename )
    18991899{
    1900     tr_list *      l;
     1900    tr_list * l;
     1901    int ruleCount;
    19011902    tr_blocklist * b;
    1902     const char *   defaultName = "level1.bin";
    1903 
    1904     assert( tr_isSession( session ) );
     1903    const char * defaultName = "level1.bin";
     1904    tr_sessionLock( session );
    19051905
    19061906    for( b = NULL, l = session->blocklists; !b && l; l = l->next )
     
    19171917    }
    19181918
    1919     return _tr_blocklistSetContent( b, contentFilename );
     1919    ruleCount = _tr_blocklistSetContent( b, contentFilename );
     1920    tr_sessionUnlock( session );
     1921    return ruleCount;
    19201922}
    19211923
Note: See TracChangeset for help on using the changeset viewer.