Ignore:
Timestamp:
Oct 27, 2016 5:47:06 AM (8 years ago)
Author:
ming
Message:

Fixed #1974: Various fixes for DNS IPv6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_resolve.c

    r5425 r5471  
    454454 
    455455        /* Resolve DNS AAAA record if address family is not fixed to IPv4 */ 
    456         if (af != pj_AF_INET()) { 
     456        if (af != pj_AF_INET() && status == PJ_SUCCESS) { 
    457457            status = pj_dns_resolver_start_query(resolver->res,  
    458458                                                 &query->naptr[0].name, 
     
    532532            ++srv->count; 
    533533        } 
    534  
    535     } else { 
    536  
     534    } 
     535     
     536    if (status != PJ_SUCCESS) { 
    537537        char errmsg[PJ_ERR_MSG_SIZE]; 
    538538 
     
    595595            ++srv->count; 
    596596        } 
    597  
    598     } else { 
    599  
     597    } 
     598     
     599    if (status != PJ_SUCCESS) { 
    600600        char errmsg[PJ_ERR_MSG_SIZE]; 
    601601 
Note: See TracChangeset for help on using the changeset viewer.