Changeset 11846


Ignore:
Timestamp:
Feb 8, 2011, 12:31:50 AM (11 years ago)
Author:
jordan
Message:

(libT) #3991 "Connection encryption stopped working" -- fixed.

This is a pretty straightfoward bug: the call to evbuffer_peek() should not have been wrapped in assert().

File:
1 edited

Legend:

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

    r11810 r11846  
    773773    const int vecCount = evbuffer_peek( buf, byteCount, NULL, NULL, 0 );
    774774    struct evbuffer_iovec * iovec = tr_new0( struct evbuffer_iovec, vecCount );
    775     assert( vecCount == evbuffer_peek( buf, byteCount, NULL, iovec, vecCount ) );
     775    const int n = evbuffer_peek( buf, byteCount, NULL, iovec, vecCount );
     776    assert( n == vecCount );
    776777    *setme_vecCount = vecCount;
    777778    return iovec;
Note: See TracChangeset for help on using the changeset viewer.