mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
(trunk libT) fix peerDestruct() crash when peer doesn't have a corresponding atom
This commit is contained in:
parent
d0a7d08b13
commit
a1b81cd152
1 changed files with 3 additions and 1 deletions
|
@ -446,7 +446,9 @@ tr_peerDestruct( tr_torrent * tor, tr_peer * peer )
|
|||
tr_bitsetDestruct( &peer->have );
|
||||
tr_bitfieldFree( peer->blame );
|
||||
tr_free( peer->client );
|
||||
peer->atom->peer = NULL;
|
||||
|
||||
if( peer->atom )
|
||||
peer->atom->peer = NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue