1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-09 13:50:00 +00:00

Don't try to generate a client string for a peer before we have their handshake.

This commit is contained in:
Josh Elsasser 2007-04-03 18:34:55 +00:00
parent 58333068e8
commit 0cb6a81077

View file

@ -227,7 +227,7 @@ void tr_peerDestroy( tr_peer_t * peer )
const char *
tr_peerClient( tr_peer_t * peer )
{
if( NULL == peer->client )
if( NULL == peer->client && PEER_STATUS_HANDSHAKE < peer->status )
{
peer->client = tr_clientForId( peer->id );
}