mirror of
https://github.com/transmission/transmission
synced 2025-03-16 08:49:47 +00:00
fix atom initialization issue with r3320
This commit is contained in:
parent
161ff6a7a2
commit
e1b447304b
1 changed files with 1 additions and 2 deletions
|
@ -845,12 +845,11 @@ ensureAtomExists( Torrent * t, const struct in_addr * addr, uint16_t port, uint8
|
|||
{
|
||||
if( !peerIsKnown( t, addr ) )
|
||||
{
|
||||
struct peer_atom * a = tr_new( struct peer_atom, 1 );
|
||||
struct peer_atom * a = tr_new0( struct peer_atom, 1 );
|
||||
a->addr = *addr;
|
||||
a->port = port;
|
||||
a->flags = flags;
|
||||
a->from = from;
|
||||
a->time = 0;
|
||||
tordbg( t, "got a new atom: %s", tr_peerIoAddrStr(&a->addr,a->port) );
|
||||
tr_ptrArrayInsertSorted( t->pool, a, comparePeerAtoms );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue