Changeset 4357 for pjproject


Ignore:
Timestamp:
Feb 19, 2013 8:05:59 PM (12 years ago)
Author:
bennylp
Message:

Fixed #1621: Handle the case when ICE session cannot create valid checklist

File:
1 edited

Legend:

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

    r4352 r4357  
    967967    } 
    968968 
     969    pj_assert(clist->count > 0); 
    969970    for (i=0; i<clist->count-1; ++i) { 
    970971        unsigned j, highest = i; 
     
    16911692    } 
    16921693 
     1694    /* This could happen if candidates have no matching address families */ 
     1695    if (clist->count == 0) { 
     1696        LOG4((ice->obj_name,  "Error: no checklist can be created")); 
     1697        pj_mutex_unlock(ice->mutex); 
     1698        return PJ_ENOTFOUND; 
     1699    } 
     1700 
    16931701    /* Sort checklist based on priority */ 
    16941702    sort_checklist(ice, clist); 
Note: See TracChangeset for help on using the changeset viewer.