Skip to content

Commit

Permalink
Don't zero out Agent on Gather
Browse files Browse the repository at this point in the history
This removes remote trickled candidates
  • Loading branch information
Sean-Der committed Sep 16, 2024
1 parent 964df53 commit fea51c6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ void agent_gather_candidate(Agent* agent, const char* urls, const char* username
int addr_type[1] = {AF_INET}; // ipv6 no need stun
Address resolved_addr;
memset(hostname, 0, sizeof(hostname));
memset(agent, 0, sizeof(Agent));
agent_create_sockets(agent);

agent_create_host_addr(agent);
Expand Down
2 changes: 0 additions & 2 deletions src/peer_connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,6 @@ static void peer_connection_state_new(PeerConnection* pc, DtlsSrtpRole role) {

memset(pc->temp_buf, 0, sizeof(pc->temp_buf));

agent_deinit(&pc->agent);

dtls_srtp_reset_session(&pc->dtls_srtp);
dtls_srtp_init(&pc->dtls_srtp, role, pc);
pc->dtls_srtp.udp_recv = peer_connection_dtls_srtp_recv;
Expand Down

0 comments on commit fea51c6

Please sign in to comment.