1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

(trunk libT) #2120: Typo in DHT support: incorrect test when bootstrapping

This commit is contained in:
Charles Kerr 2009-05-27 17:35:49 +00:00
parent aadec20d73
commit 49885aae05

View file

@ -1443,7 +1443,7 @@ readBtMessage( tr_peermsgs * msgs, struct evbuffer * inbuf, size_t inlen )
case BT_PORT:
dbgmsg( msgs, "Got a BT_PORT" );
tr_peerIoReadUint16( msgs->peer->io, inbuf, &msgs->peer->dht_port );
if( msgs->peer->port > 0 )
if( msgs->peer->dht_port > 0 )
tr_dhtAddNode( msgs->session, &msgs->peer->addr, msgs->peer->dht_port, 0 );
break;