Changeset 4203 for pjproject


Ignore:
Timestamp:
Jul 12, 2012 6:39:36 AM (12 years ago)
Author:
bennylp
Message:

Fixed #1552: Possible crash if media transport stop() is called on ICE transport while ICE is not created (thanks Iliya Prince for the fix)

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/transport_ice.c

    r3999 r4203  
    286286    } 
    287287 
    288     pj_ice_strans_stop_ice(tp_ice->ice_st); 
     288    if (tp_ice->ice_st) { 
     289        pj_ice_strans_stop_ice(tp_ice->ice_st); 
     290    } 
    289291 
    290292    tp_ice->use_ice = PJ_FALSE; 
  • pjproject/trunk/pjnath/src/pjnath/ice_strans.c

    r4133 r4203  
    11461146PJ_DEF(pj_status_t) pj_ice_strans_stop_ice(pj_ice_strans *ice_st) 
    11471147{ 
     1148    PJ_ASSERT_RETURN(ice_st, PJ_EINVAL); 
     1149 
    11481150    if (ice_st->ice) { 
    11491151        pj_ice_sess_destroy(ice_st->ice); 
Note: See TracChangeset for help on using the changeset viewer.