diff --git a/libtransmission/peer-msgs.c b/libtransmission/peer-msgs.c index 87afdb217..bfb7a4fc6 100644 --- a/libtransmission/peer-msgs.c +++ b/libtransmission/peer-msgs.c @@ -1973,7 +1973,8 @@ fillOutputBuffer( tr_peermsgs * msgs, time_t now ) protocolSendReject( msgs, &req ); } - prefetchPieces( msgs ); + if( msgs != NULL ) + prefetchPieces( msgs ); } /**