Changeset 1617


Ignore:
Timestamp:
Dec 5, 2007 4:08:40 AM (17 years ago)
Author:
bennylp
Message:

Fixed Contact generation failure and crash on unregistration if regc initialization failed

File:
1 edited

Legend:

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

    r1610 r1617  
    901901                                " for registration",  
    902902                     status); 
     903        pjsip_regc_destroy(acc->regc); 
     904        acc->regc = NULL; 
    903905        return status; 
    904906    } 
     
    914916                     "Client registration initialization error",  
    915917                     status); 
     918        pjsip_regc_destroy(acc->regc); 
     919        acc->regc = NULL; 
    916920        return status; 
    917921    } 
     
    14331437     * to use IPv6 as well. 
    14341438     */ 
    1435     if (pj_strchr(suri, ':')) 
     1439    if (pj_strchr(&sip_uri->host, ':')) 
    14361440        tp_type = (pjsip_transport_type_e)(((int)tp_type) + PJSIP_TRANSPORT_IPV6); 
    14371441 
Note: See TracChangeset for help on using the changeset viewer.