Ignore:
Timestamp:
Oct 24, 2016 3:22:46 AM (7 years ago)
Author:
nanang
Message:

Misc (re #1945): Avoid calling memchr() or memcpy() with NULL pointer (thanks Kal from the patch).

File:
1 edited

Legend:

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

    r5451 r5468  
    20142014 
    20152015    /* Check if host contains IPv6 */ 
    2016     if (pj_memchr(hdr->sent_by.host.ptr, ':', hdr->sent_by.host.slen)) { 
     2016    if (pj_strchr(&hdr->sent_by.host, ':')) { 
    20172017        copy_advance_pair_quote_cond(buf, "", 0, hdr->sent_by.host, '[', ']'); 
    20182018    } else { 
Note: See TracChangeset for help on using the changeset viewer.