Changeset 11658


Ignore:
Timestamp:
Jan 9, 2011, 9:48:48 PM (11 years ago)
Author:
jch
Message:

Fix tr-udp for the no IPv6 case.

File:
1 edited

Legend:

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

    r11657 r11658  
    185185
    186186 ipv6:
    187     ss->udp6_event = tr_new0(struct event, 1);
    188     if(ss->udp6_event == NULL) {
    189         tr_nerr("UDP", "Couldn't allocate IPv6 event");
    190     } else {
    191         if(tr_globalIPv6())
    192             rebind_ipv6(ss, TRUE);
    193         if(ss->udp6_socket >= 0)
     187    if(tr_globalIPv6())
     188        rebind_ipv6(ss, TRUE);
     189    if(ss->udp6_socket >= 0) {
     190        ss->udp6_event = tr_new0(struct event, 1);
     191        if(ss->udp6_event == NULL) {
     192            tr_nerr("UDP", "Couldn't allocate IPv6 event");
     193        } else {
    194194            event_set(ss->udp6_event, ss->udp6_socket, EV_READ | EV_PERSIST,
    195195                      event_callback, ss);
     196        }
    196197    }
    197198
Note: See TracChangeset for help on using the changeset viewer.