Changeset 1450 for pjproject/trunk/pjnath/src/pjnath/ice_session.c
- Timestamp:
- Sep 24, 2007 7:46:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/ice_session.c
r1439 r1450 215 215 /* Create STUN session for this candidate */ 216 216 status = pj_stun_session_create(&ice->stun_cfg, NULL, 217 &sess_cb, PJ_ FALSE,217 &sess_cb, PJ_TRUE, 218 218 &comp->stun_sess); 219 219 if (status != PJ_SUCCESS) … … 297 297 298 298 if (local_ufrag == NULL) { 299 ice->rx_ufrag.ptr = (char*) pj_pool_alloc(ice->pool, 16);300 pj_create_random_string(ice->rx_ufrag.ptr, 16);301 ice->rx_ufrag.slen = 16;299 ice->rx_ufrag.ptr = (char*) pj_pool_alloc(ice->pool, PJ_ICE_UFRAG_LEN); 300 pj_create_random_string(ice->rx_ufrag.ptr, PJ_ICE_UFRAG_LEN); 301 ice->rx_ufrag.slen = PJ_ICE_UFRAG_LEN; 302 302 } else { 303 303 pj_strdup(ice->pool, &ice->rx_ufrag, local_ufrag); … … 305 305 306 306 if (local_passwd == NULL) { 307 ice->rx_pass.ptr = (char*) pj_pool_alloc(ice->pool, 16);308 pj_create_random_string(ice->rx_pass.ptr, 16);309 ice->rx_pass.slen = 16;307 ice->rx_pass.ptr = (char*) pj_pool_alloc(ice->pool, PJ_ICE_UFRAG_LEN); 308 pj_create_random_string(ice->rx_pass.ptr, PJ_ICE_UFRAG_LEN); 309 ice->rx_pass.slen = PJ_ICE_UFRAG_LEN; 310 310 } else { 311 311 pj_strdup(ice->pool, &ice->rx_pass, local_passwd);
Note: See TracChangeset
for help on using the changeset viewer.