diff --git a/libtransmission/peer-msgs.c b/libtransmission/peer-msgs.c index be8b69f9e..a2a43db96 100644 --- a/libtransmission/peer-msgs.c +++ b/libtransmission/peer-msgs.c @@ -692,7 +692,7 @@ reqIsValid( const tr_peermsgs * msgs, else if( tr_pieceOffset( tor, index, offset, length ) > tor->info.totalSize ) err = 4; - if( !err ) + if( err ) { fprintf( stderr, "(ticket #751) err is %d\n", err ); fprintf( stderr, "(ticket #751) req.index is %"PRIu32"\n", index );