Ignore:
Timestamp:
Jan 28, 2007, 12:24:41 AM (15 years ago)
Author:
joshe
Message:

Store the peers's listening port instead of the peer connections's remote port.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r1427 r1441  
    359359    {
    360360        SocketSetPriority( s, 0 );
    361         *addr = sock.sin_addr;
    362         *port = sock.sin_port;
     361        if( NULL != addr )
     362        {
     363            *addr = sock.sin_addr;
     364        }
     365        if( NULL != port )
     366        {
     367            *port = sock.sin_port;
     368        }
    363369        gFd->normal++;
    364370    }
Note: See TracChangeset for help on using the changeset viewer.