Ticket #7: incorrect-port-test.patch

File incorrect-port-test.patch, 570 bytes (added by jch, 13 years ago)
  • libtransmission/peer-msgs.c

     
    14431443        case BT_PORT:
    14441444            dbgmsg( msgs, "Got a BT_PORT" );
    14451445            tr_peerIoReadUint16( msgs->peer->io, inbuf, &msgs->peer->dht_port );
    1446             if( msgs->peer->port > 0 )
     1446            if( msgs->peer->dht_port > 0 )
    14471447                tr_dhtAddNode( msgs->session, &msgs->peer->addr, msgs->peer->dht_port, 0 );
    14481448            break;
    14491449