Changeset 5464


Ignore:
Timestamp:
Oct 21, 2016 2:46:32 AM (3 years ago)
Author:
nanang
Message:

Misc (re #1945): Fixed assertion in resolver: on read error, source address may be invalid and printing source address will trigger assertion (due to invalid address family).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util/resolver.c

    r5437 r5464  
    16661666        status = (pj_status_t)-bytes_read; 
    16671667        pj_strerror(status, errmsg, sizeof(errmsg)); 
    1668         PJ_LOG(4,(resolver->name.ptr,  
    1669                   "DNS resolver read error from %s:%d: %s",  
    1670                   pj_sockaddr_print(src_addr, addr, sizeof(addr), 2), 
    1671                   pj_sockaddr_get_port(src_addr), 
    1672                   errmsg)); 
     1668        PJ_LOG(4,(resolver->name.ptr, "DNS resolver read error: %s", errmsg)); 
    16731669 
    16741670        goto read_next_packet; 
Note: See TracChangeset for help on using the changeset viewer.