Commit e55e2cd7 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Prevent crash with null pointer.

parent 243cc4d3
......@@ -1793,6 +1793,7 @@ static void ice_handle_received_binding_response(IceCheckList *cl, RtpSession *r
IceStunServerCheckTransaction *transaction;
IceStunServerCheck *check = (IceStunServerCheck *)elem->data;
elem = ms_list_find_custom(check->transactions, (MSCompareFunc) ice_compare_transactionIDs, &msg->msgHdr.tr_id);
if (elem != NULL) {
transaction = (IceStunServerCheckTransaction *)elem->data;
if (transaction != NULL) {
componentID = ice_get_componentID_from_rtp_session(evt_data);
......@@ -1809,6 +1810,7 @@ static void ice_handle_received_binding_response(IceCheckList *cl, RtpSession *r
stun_server_response = TRUE;
}
}
}
if (ms_list_find_custom(cl->stun_server_checks, (MSCompareFunc)ice_find_non_responded_stun_server_check, NULL) == NULL) {
cl->gathering_candidates = FALSE;
cl->gathering_finished = TRUE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment