Ignore:
Timestamp:
Apr 9, 2011, 2:36:33 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) #4173 "crashing with r12315 in Debian" -- apply patch from comment:8 for testing in 2.30b2

File:
1 edited

Legend:

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

    r12332 r12337  
    10521052tr_peerIoReadBytesToBuf( tr_peerIo * io, struct evbuffer * inbuf, struct evbuffer * outbuf, size_t byteCount )
    10531053{
     1054    struct evbuffer * tmp;
    10541055    const size_t old_length = evbuffer_get_length( outbuf );
    10551056
     
    10581059
    10591060    /* append it to outbuf */
    1060     evbuffer_remove_buffer( inbuf, outbuf, byteCount );
     1061    tmp = evbuffer_new( );
     1062    evbuffer_remove_buffer( inbuf, tmp, byteCount );
     1063    evbuffer_add_buffer( outbuf, tmp );
     1064    evbuffer_free( tmp );
    10611065
    10621066    /* decrypt if needed */
Note: See TracChangeset for help on using the changeset viewer.