Ignore:
Timestamp:
Nov 11, 2010, 3:31:11 PM (11 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/peer-io.c

    r11349 r11398  
    261261        }
    262262
    263         tr_net_strerror( errstr, sizeof( errstr ), e ); 
     263        tr_net_strerror( errstr, sizeof( errstr ), e );
    264264        dbgmsg( io, "event_read_cb got an error. res is %d, what is %hd, errno is %d (%s)", res, what, e, errstr );
    265265
     
    401401        maybeSetCongestionAlgorithm( socket, session->peer_congestion_algorithm );
    402402    }
    403    
     403
    404404    io = tr_new0( tr_peerIo, 1 );
    405405    io->magicNumber = MAGIC_NUMBER;
     
    946946            if( res == 0 )
    947947                what |= EVBUFFER_EOF;
    948             tr_net_strerror( errstr, sizeof( errstr ), e ); 
     948            tr_net_strerror( errstr, sizeof( errstr ), e );
    949949            dbgmsg( io, "tr_peerIoTryRead got an error. res is %d, what is %hd, errno is %d (%s)", res, what, e, errstr );
    950950            io->gotError( io, what, io->userData );
     
    975975            const short what = EVBUFFER_WRITE | EVBUFFER_ERROR;
    976976
    977             tr_net_strerror( errstr, sizeof( errstr ), e ); 
     977            tr_net_strerror( errstr, sizeof( errstr ), e );
    978978            dbgmsg( io, "tr_peerIoTryWrite got an error. res is %d, what is %hd, errno is %d (%s)", n, what, e, errstr );
    979979
Note: See TracChangeset for help on using the changeset viewer.