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/pjlib-util/src/pjlib-util/resolver.c

    r5464 r5471  
    857857    struct res_key key; 
    858858    struct cached_res *cache; 
    859     pj_dns_async_query *q; 
     859    pj_dns_async_query *q, *p_q = NULL; 
    860860    pj_uint32_t hval; 
    861861    pj_status_t status = PJ_SUCCESS; 
     
    870870    /* Check type */ 
    871871    PJ_ASSERT_RETURN(type > 0 && type < 0xFFFF, PJ_EINVAL); 
    872  
    873     if (p_query) 
    874         *p_query = NULL; 
    875872 
    876873    /* Build resource key for looking up hash tables */ 
     
    992989                   0, q->hbufkey, q); 
    993990 
     991    p_q = q; 
     992 
     993on_return: 
    994994    if (p_query) 
    995         *p_query = q; 
    996  
    997 on_return: 
     995        *p_query = p_q; 
     996 
    998997    pj_mutex_unlock(resolver->mutex); 
    999998    return status; 
Note: See TracChangeset for help on using the changeset viewer.