Changeset 4684


Ignore:
Timestamp:
Dec 5, 2013 8:25:27 AM (7 years ago)
Author:
bennylp
Message:

Re #1519: fixed assertion when unable to resolve destination

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/pjsua2/pjsip/src/pjsua2/siptypes.cpp

    r4683 r4684  
    491491    pjsip_tx_data_encode(&tdata); 
    492492    wholeMsg    = string(tdata.buf.start, tdata.buf.end - tdata.buf.start); 
    493     pj_sockaddr_print(&tdata.tp_info.dst_addr, straddr, sizeof(straddr), 3); 
    494     dstAddress  = straddr; 
     493    if (pj_sockaddr_has_addr(&tdata.tp_info.dst_addr)) { 
     494        pj_sockaddr_print(&tdata.tp_info.dst_addr, straddr, sizeof(straddr), 3); 
     495        dstAddress  = straddr; 
     496    } else { 
     497        dstAddress = ""; 
     498    } 
    495499    pjTxData    = (void *)&tdata; 
    496500} 
Note: See TracChangeset for help on using the changeset viewer.