Ignore:
Timestamp:
Apr 12, 2009, 2:52:17 PM (13 years ago)
Author:
charles
Message:

(trunk libT) more speed tweaks from valgrind

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r7888 r8217  
    744744
    745745        case PEER_ENCRYPTION_RC4:
    746             evbuffer_remove( inbuf, bytes, byteCount );
    747             tr_cryptoDecrypt( io->crypto, byteCount, bytes, bytes );
     746            tr_cryptoDecrypt( io->crypto, byteCount, EVBUFFER_DATA(inbuf), bytes );
     747            evbuffer_drain(inbuf, byteCount );
    748748            break;
    749749
Note: See TracChangeset for help on using the changeset viewer.