Changeset 13629


Ignore:
Timestamp:
Dec 6, 2012, 12:50:40 AM (9 years ago)
Author:
jordan
Message:

(trunk, libT) #5157 -- fix r13628 oops

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.c

    r13628 r13629  
    301301                         bool                clientIsSeed UNUSED)
    302302{
    303     struct sockaddr_storage ss;
    304     socklen_t sslen;
    305 
    306     if (!tr_address_is_valid_for_peers (addr, port))
    307         return -EINVAL;
    308 
    309     sslen = setup_sockaddr (addr, port, &ss);
    310 
    311     return UTP_Create (tr_utpSendTo, (void*)session,
    312                      (struct sockaddr*)&ss, sslen);
     303  struct UTPSocket * ret = NULL;
     304
     305  if (tr_address_is_valid_for_peers (addr, port))
     306    {
     307      struct sockaddr_storage ss;
     308      const socklen_t sslen = setup_sockaddr (addr, port, &ss);
     309      ret = UTP_Create (tr_utpSendTo, session, (struct sockaddr*)&ss, sslen);
     310    }
     311
     312  return ret;
    313313}
    314314
Note: See TracChangeset for help on using the changeset viewer.