Changeset 5070


Ignore:
Timestamp:
Apr 15, 2015 12:38:54 AM (9 years ago)
Author:
nanang
Message:

Fixed #1844: Replaced assertion check of component ID range with normal check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/ice_session.c

    r4713 r5070  
    561561static pj_ice_sess_comp *find_comp(const pj_ice_sess *ice, unsigned comp_id) 
    562562{ 
    563     pj_assert(comp_id > 0 && comp_id <= ice->comp_cnt); 
     563    /* Ticket #1844: possible wrong assertion when remote has less ICE comp */ 
     564    //pj_assert(comp_id > 0 && comp_id <= ice->comp_cnt); 
     565    if (comp_id > ice->comp_cnt) 
     566        return NULL; 
     567 
    564568    return (pj_ice_sess_comp*) &ice->comp[comp_id-1]; 
    565569} 
Note: See TracChangeset for help on using the changeset viewer.