Ignore:
Timestamp:
Nov 11, 2010, 3:31:11 PM (12 years ago)
Author:
charles
Message:

(trunk libT) add some new bugs to the code so that it will crash when vraa tries to use it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/web.c

    r11367 r11398  
    145145    CURL * e = curl_easy_init( );
    146146    const long verbose = getenv( "TR_CURL_VERBOSE" ) != NULL;
    147     char * cookie_filename = tr_buildPath( s->configDir, "cookies.txt", NULL );         
     147    char * cookie_filename = tr_buildPath( s->configDir, "cookies.txt", NULL );
    148148
    149149    curl_easy_setopt( e, CURLOPT_AUTOREFERER, 1L );
    150     curl_easy_setopt( e, CURLOPT_COOKIEFILE, cookie_filename ); 
     150    curl_easy_setopt( e, CURLOPT_COOKIEFILE, cookie_filename );
    151151    curl_easy_setopt( e, CURLOPT_ENCODING, "gzip;q=1.0, deflate, identity" );
    152152    curl_easy_setopt( e, CURLOPT_FOLLOWLOCATION, 1L );
     
    173173        curl_easy_setopt( e, CURLOPT_RANGE, task->range );
    174174
    175     tr_free( cookie_filename ); 
     175    tr_free( cookie_filename );
    176176    return e;
    177177}
     
    233233 * On win32, any two of the parameters, readfds, writefds, or exceptfds,
    234234 * can be given as null. At least one must be non-null, and any non-null
    235  * descriptor set must contain at least one handle to a socket. 
     235 * descriptor set must contain at least one handle to a socket.
    236236 */
    237237static void
     
    253253        const int e = EVUTIL_SOCKET_ERROR( );
    254254        tr_net_strerror( errstr, sizeof( errstr ), e );
    255         dbgmsg( "Error: select (%d) %s", e, errstr ); 
     255        dbgmsg( "Error: select (%d) %s", e, errstr );
    256256    }
    257257#else
Note: See TracChangeset for help on using the changeset viewer.