Changeset 1392 for pjproject/trunk
- Timestamp:
- Jun 26, 2007 10:10:24 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/ice_session.c
r1374 r1392 1196 1196 timer_data *td; 1197 1197 unsigned i, j; 1198 unsigned highest_comp = 0; 1198 1199 pj_status_t status; 1199 1200 … … 1232 1233 continue; 1233 1234 } 1235 1236 if (rcand[i].comp_id > highest_comp) 1237 highest_comp = rcand[i].comp_id; 1234 1238 1235 1239 pj_memcpy(cn, &rcand[i], sizeof(pj_ice_sess_cand)); … … 1281 1285 pj_mutex_unlock(ice->mutex); 1282 1286 return status; 1287 } 1288 1289 /* Disable our components which don't have matching component */ 1290 if (ice->comp_cnt==2 && highest_comp==1) { 1291 ice->comp_cnt = 1; 1283 1292 } 1284 1293 … … 2255 2264 pj_ice_sess_comp *comp; 2256 2265 2257 PJ_ASSERT_RETURN(ice && comp_id && comp_id <= ice->comp_cnt, PJ_EINVAL);2266 PJ_ASSERT_RETURN(ice && comp_id, PJ_EINVAL); 2258 2267 2268 /* It is possible that comp_cnt is less than comp_id, when remote 2269 * doesn't support all the components that we have. 2270 */ 2271 if (comp_id > ice->comp_cnt) { 2272 return PJNATH_EICEINCOMPID; 2273 } 2274 2259 2275 pj_mutex_lock(ice->mutex); 2260 2276
Note: See TracChangeset
for help on using the changeset viewer.