Closed aldoshkind closed 2 years ago
If PeerConnection is not zeroed upon creation checking for its field to NULL is meaningless (as fields contain garbage) and leads to sigsegvs. For example this happens in peer_connection_ice_recv_cb:
PeerConnection
peer_connection_ice_recv_cb
if(pc->ontrack != NULL) { pc->ontrack(buf, len, pc->ontrack_userdata); }
This PR contains hotfix for this problem.
If
PeerConnection
is not zeroed upon creation checking for its field to NULL is meaningless (as fields contain garbage) and leads to sigsegvs. For example this happens inpeer_connection_ice_recv_cb
:This PR contains hotfix for this problem.