Changeset 5339 for pjproject/trunk/pjnath/src/pjnath/ice_session.c
- Timestamp:
- Jun 8, 2016 3:17:45 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/ice_session.c
r5221 r5339 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,
Note: See TracChangeset
for help on using the changeset viewer.