Changeset 12332


Ignore:
Timestamp:
Apr 7, 2011, 6:56:31 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) #4173 "Crashing with r12315 in Debian" -- possible fix?

File:
1 edited

Legend:

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

    r12320 r12332  
    10661066        evbuffer_ptr_set( outbuf, &pos, old_length, EVBUFFER_PTR_SET );
    10671067        do {
    1068            evbuffer_peek( outbuf, byteCount, &pos, &iovec, 1 );
     1068            evbuffer_peek( outbuf, byteCount, &pos, &iovec, 1 );
    10691069            tr_cryptoDecrypt( io->crypto, iovec.iov_len, iovec.iov_base, iovec.iov_base );
     1070            byteCount -= iovec.iov_len;
    10701071        } while( !evbuffer_ptr_set( outbuf, &pos, iovec.iov_len, EVBUFFER_PTR_ADD ) );
    10711072    }
Note: See TracChangeset for help on using the changeset viewer.