Ignore:
Timestamp:
Feb 10, 2007 7:22:25 PM (18 years ago)
Author:
bennylp
Message:

Related to ticket #97: make name_addr handling more robust against possibility of bugs that someone may put another name_addr inside a name_addr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c

    r892 r939  
    944944     */ 
    945945    if (!pj_list_empty(&acc->route_set)) { 
    946         sip_uri = (pjsip_sip_uri*) acc->route_set.next->name_addr.uri; 
     946        sip_uri = (pjsip_sip_uri*)  
     947                  pjsip_uri_get_uri(acc->route_set.next->name_addr.uri); 
    947948    } else { 
    948949        pj_str_t tmp; 
     
    10351036    /* If Record-Route is present, then URI is the top Record-Route. */ 
    10361037    if (rdata->msg_info.record_route) { 
    1037         sip_uri = (pjsip_sip_uri*) rdata->msg_info.record_route->name_addr.uri; 
     1038        sip_uri = (pjsip_sip_uri*)  
     1039                pjsip_uri_get_uri(rdata->msg_info.record_route->name_addr.uri); 
    10381040    } else { 
    10391041        pjsip_contact_hdr *h_contact; 
Note: See TracChangeset for help on using the changeset viewer.