Ignore:
Timestamp:
Jun 2, 2010 3:03:43 AM (14 years ago)
Author:
bennylp
Message:

Fixed #1092 (Crash when receiving various messages with "Contact: *" header format)

File:
1 edited

Legend:

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

    r3185 r3190  
    22382238                                           pos); 
    22392239            if (h_contact) { 
    2240                 uri = (pjsip_uri*) pjsip_uri_get_uri(h_contact->uri); 
    2241                 if (!PJSIP_URI_SCHEME_IS_SIP(uri) &&  
    2242                     !PJSIP_URI_SCHEME_IS_SIPS(uri)) 
     2240                if (h_contact->uri) 
     2241                    uri = (pjsip_uri*) pjsip_uri_get_uri(h_contact->uri); 
     2242                else 
     2243                    uri = NULL; 
     2244                if (!uri || (!PJSIP_URI_SCHEME_IS_SIP(uri) && 
     2245                             !PJSIP_URI_SCHEME_IS_SIPS(uri))) 
    22432246                { 
    22442247                    pos = (pjsip_hdr*)h_contact->next; 
Note: See TracChangeset for help on using the changeset viewer.