Ignore:
Timestamp:
Oct 22, 2009, 7:08:45 PM (13 years ago)
Author:
charles
Message:

(trunk libT) undo today's earlier commit r9381 for #2508 -- looks like I introduced a bug into the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-msgs.c

    r9381 r9383  
    10601060    /* get peer's listening port */
    10611061    if( tr_bencDictFindInt( &val, "p", &i ) ) {
    1062         tr_atomSetPort( msgs->peer->atom, htons( (uint16_t)i ) );
    1063         dbgmsg( msgs, "msgs->port is now %hu", tr_atomGetPort( msgs->peer->atom ) );
     1062        msgs->peer->port = htons( (uint16_t)i );
     1063        dbgmsg( msgs, "msgs->port is now %hu", msgs->peer->port );
    10641064    }
    10651065
     
    14561456            tr_peerIoReadUint16( msgs->peer->io, inbuf, &msgs->peer->dht_port );
    14571457            if( msgs->peer->dht_port > 0 )
    1458                 tr_dhtAddNode( getSession(msgs), tr_atomGetAddr( msgs->peer->atom ), msgs->peer->dht_port, 0 );
     1458                tr_dhtAddNode( getSession(msgs), &msgs->peer->addr, msgs->peer->dht_port, 0 );
    14591459            break;
    14601460
Note: See TracChangeset for help on using the changeset viewer.