Fixed ice session assertion when there's no checklist (#2955)

remotes/origin/update_contact_on_ip_change
sauwming 3 years ago committed by GitHub
parent 74c0309d80
commit ddefd578b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2505,8 +2505,8 @@ PJ_DEF(pj_status_t) pj_ice_sess_start_check(pj_ice_sess *ice)
PJ_ASSERT_RETURN(ice, PJ_EINVAL);
/* Checklist must have been created */
PJ_ASSERT_RETURN(ice->clist.count > 0 || ice->is_trickling,
PJ_EINVALIDOP);
if (ice->clist.count == 0 && !ice->is_trickling)
return PJ_EINVALIDOP;
/* Lock session */
pj_grp_lock_acquire(ice->grp_lock);

Loading…
Cancel
Save