Changeset 13628


Ignore:
Timestamp:
Dec 5, 2012, 11:48:00 PM (8 years ago)
Author:
jordan
Message:

(trunk, libT) #5157 'check valid address before UTP_Create()' -- added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.c

    r13625 r13628  
    303303    struct sockaddr_storage ss;
    304304    socklen_t sslen;
     305
     306    if (!tr_address_is_valid_for_peers (addr, port))
     307        return -EINVAL;
     308
    305309    sslen = setup_sockaddr (addr, port, &ss);
    306310
Note: See TracChangeset for help on using the changeset viewer.