Changeset 1341 for pjproject


Ignore:
Timestamp:
Jun 5, 2007 10:58:32 PM (17 years ago)
Author:
bennylp
Message:

Fixed ticket #319: assertion in pjsua when adding buddy with invalid or unreachable host (thanks Paul Levin)

File:
1 edited

Legend:

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

    r1311 r1341  
    10661066    status = pjsip_pres_initiate(buddy->sub, -1, &tdata); 
    10671067    if (status != PJ_SUCCESS) { 
    1068         pjsip_pres_terminate(buddy->sub, PJ_FALSE); 
     1068        if (buddy->sub) { 
     1069            pjsip_pres_terminate(buddy->sub, PJ_FALSE); 
     1070        } 
    10691071        buddy->sub = NULL; 
    10701072        pjsua_perror(THIS_FILE, "Unable to create initial SUBSCRIBE",  
     
    10771079    status = pjsip_pres_send_request(buddy->sub, tdata); 
    10781080    if (status != PJ_SUCCESS) { 
    1079         pjsip_pres_terminate(buddy->sub, PJ_FALSE); 
     1081        if (buddy->sub) { 
     1082            pjsip_pres_terminate(buddy->sub, PJ_FALSE); 
     1083        } 
    10801084        buddy->sub = NULL; 
    10811085        pjsua_perror(THIS_FILE, "Unable to send initial SUBSCRIBE",  
Note: See TracChangeset for help on using the changeset viewer.