Changeset 2202


Ignore:
Timestamp:
Aug 11, 2008 3:17:40 PM (16 years ago)
Author:
bennylp
Message:

Ticket #591: Assertion failure in ICE session (thanks Pedro Gonçalves for the report)

File:
1 edited

Legend:

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

    r2175 r2202  
    16371637    PJ_ASSERT_RETURN(ice->clist.count > 0, PJ_EINVALIDOP); 
    16381638 
     1639    /* Lock session */ 
     1640    pj_mutex_lock(ice->mutex); 
     1641 
    16391642    LOG4((ice->obj_name, "Starting ICE check..")); 
    16401643 
     
    16601663    if (i == clist->count) { 
    16611664        pj_assert(!"Unable to find checklist for component 1"); 
     1665        pj_mutex_unlock(ice->mutex); 
    16621666        return PJNATH_EICEINCOMPID; 
    16631667    } 
     
    17111715    } 
    17121716 
     1717    pj_mutex_unlock(ice->mutex); 
    17131718    return status; 
    17141719} 
     
    21922197     */ 
    21932198    if (i == ice->rcand_cnt) { 
     2199        if (ice->rcand_cnt >= PJ_ICE_MAX_CAND) { 
     2200            LOG4((ice->obj_name,  
     2201                  "Unable to add new peer reflexive candidate: too many " 
     2202                  "candidates already (%d)", PJ_ICE_MAX_CAND)); 
     2203            return; 
     2204        } 
     2205 
    21942206        rcand = &ice->rcand[ice->rcand_cnt++]; 
    21952207        rcand->comp_id = (pj_uint8_t)rcheck->comp_id; 
Note: See TracChangeset for help on using the changeset viewer.