(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
1 changed files with 1 additions and 1 deletions

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;