1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-07 06:54:40 +00:00

(libT) fix cut and paste bug. I think this is the crash everyone in #transmission is chiming in about.

This commit is contained in:
Charles Kerr 2008-11-26 02:56:04 +00:00
parent a70c922ab8
commit 645610f995

View file

@ -168,7 +168,7 @@ canReadWrapper( struct tr_iobuf * iobuf,
const size_t oldLen = EVBUFFER_LENGTH( tr_iobuf_input( iobuf ) );
const int ret = io->canRead( iobuf, io->userData, &piece );
if( ret != err )
if( ret != READ_ERR )
{
const size_t used = oldLen - EVBUFFER_LENGTH( tr_iobuf_input( iobuf ) );
if( piece )