Ignore:
Timestamp:
May 13, 2016 1:24:03 AM (8 years ago)
Author:
ming
Message:

Re #1917 (misc): Fixed pj_getaddrinfo()'s CFHost version (such as on iOS) which may return truncated IP address if (af == PJ_AF_UNSPEC) and the address is of IPv6 family.

Thanks to Johan Lantz for the fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/addr_resolv_sock.c

    r5146 r5295  
    146146                /* Store address */ 
    147147                addr_size = sizeof(*addr); 
    148                 if (af == PJ_AF_INET6) { 
     148                if (addr->sa_family == PJ_AF_INET6) { 
    149149                    addr_size = addr->sa_len; 
    150150                } 
Note: See TracChangeset for help on using the changeset viewer.