Changeset 11644


Ignore:
Timestamp:
Jan 8, 2011, 1:09:12 AM (11 years ago)
Author:
jch
Message:

Avoid a descriptor leak when binding the IPv6 DHT socket fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tr-dht.c

    r11599 r11644  
    295295    rc = bind(s, (struct sockaddr*)&sin6, sizeof(sin6));
    296296
    297     if(rc < 0)
     297    if(rc < 0) {
     298        close(s);
    298299        return -1;
     300    }
    299301
    300302    if(dht6_socket < 0) {
Note: See TracChangeset for help on using the changeset viewer.