Changeset 4305 for pjproject/trunk


Ignore:
Timestamp:
Dec 5, 2012 10:40:56 AM (12 years ago)
Author:
bennylp
Message:

Misc (re #1562): Add a protection in med_tp_timer_cb() against call that may have been terminated before ICE callback is called. It has been reported that this has caused a crash, but we cannot reproduce it. Thanks Karina for the report.

File:
1 edited

Legend:

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

    r4304 r4305  
    571571        pjsip_dialog *dlg = NULL; 
    572572 
    573         acquire_call("med_tp_timer_cb", call_med->call->index, &call, &dlg); 
     573        if (acquire_call("med_tp_timer_cb", call_med->call->index, 
     574                         &call, &dlg) != PJ_SUCCESS) 
     575        { 
     576            /* Call have been terminated */ 
     577            return; 
     578        } 
    574579 
    575580        (*call_med->med_create_cb)(call_med, call_med->tp_ready, 
Note: See TracChangeset for help on using the changeset viewer.