- Timestamp:
- Dec 28, 2016 3:40:07 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp
- Property svn:mergeinfo changed
/pjproject/trunk (added) merged: 5209,5212-5234,5237-5253,5255,5257-5292,5294-5297,5299-5332,5334-5394,5396-5438,5440-5469,5471-5496,5498-5510
- Property svn:mergeinfo changed
-
pjproject/branches/projects/uwp/pjnath/src/pjnath/ice_session.c
r5184 r5513 397 397 /* Initialize transport datas */ 398 398 for (i=0; i<PJ_ARRAY_SIZE(ice->tp_data); ++i) { 399 ice->tp_data[i].transport_id = i;399 ice->tp_data[i].transport_id = 0; 400 400 ice->tp_data[i].has_req_data = PJ_FALSE; 401 401 } … … 724 724 pj_status_t status = PJ_SUCCESS; 725 725 char address[PJ_INET6_ADDRSTRLEN]; 726 unsigned i; 726 727 727 728 PJ_ASSERT_RETURN(ice && comp_id && … … 748 749 rel_addr = base_addr; 749 750 pj_memcpy(&lcand->rel_addr, rel_addr, addr_len); 751 752 /* Update transport data */ 753 for (i = 0; i < PJ_ARRAY_SIZE(ice->tp_data); ++i) { 754 /* Check if this transport has been registered */ 755 if (ice->tp_data[i].transport_id == transport_id) 756 break; 757 758 if (ice->tp_data[i].transport_id == 0) { 759 /* Found an empty slot, register this transport here */ 760 ice->tp_data[i].transport_id = transport_id; 761 break; 762 } 763 } 764 pj_assert(i < PJ_ARRAY_SIZE(ice->tp_data) && 765 ice->tp_data[i].transport_id == transport_id); 750 766 751 767 pj_ansi_strcpy(ice->tmp.txt, pj_sockaddr_print(&lcand->addr, address, … … 1662 1678 pj_ice_sess_cand *lcand = &ice->lcand[i]; 1663 1679 pj_ice_sess_cand *rcand = &ice->rcand[j]; 1664 pj_ice_sess_check *chk = &clist->checks[clist->count];1680 pj_ice_sess_check *chk = NULL; 1665 1681 1666 1682 if (clist->count >= PJ_ICE_MAX_CHECKS) { … … 1668 1684 return PJ_ETOOMANY; 1669 1685 } 1686 1687 chk = &clist->checks[clist->count]; 1670 1688 1671 1689 /* A local candidate is paired with a remote candidate if … … 1875 1893 status = perform_check(ice, clist, i, ice->is_nominating); 1876 1894 if (status != PJ_SUCCESS) { 1877 pj_grp_lock_release(ice->grp_lock);1878 pj_log_pop_indent();1879 return status;1895 check_set_state(ice, check, PJ_ICE_SESS_CHECK_STATE_FAILED, 1896 status); 1897 on_check_complete(ice, check); 1880 1898 } 1881 1899 … … 1895 1913 status = perform_check(ice, clist, i, ice->is_nominating); 1896 1914 if (status != PJ_SUCCESS) { 1897 pj_grp_lock_release(ice->grp_lock);1898 pj_log_pop_indent();1899 return status;1915 check_set_state(ice, check, 1916 PJ_ICE_SESS_CHECK_STATE_FAILED, status); 1917 on_check_complete(ice, check); 1900 1918 } 1901 1919
Note: See TracChangeset
for help on using the changeset viewer.