Commit 71445c80 authored by Ghislain MARY's avatar Ghislain MARY

Remove duplicated memset calls coming from branch merge.

parent 2763e2d7
......@@ -2065,7 +2065,6 @@ static int ice_check_received_binding_response_addresses(const RtpSession *rtp_s
MSStunAddress pair_remote_stun_addr;
MSStunAddress pair_local_stun_addr;
memset(&recv_addr, 0, recv_addrlen);
pair_remote_stun_addr = ms_ip_address_to_stun_address(pair->remote->taddr.family, SOCK_DGRAM, pair->remote->taddr.ip, pair->remote->taddr.port);
pair_local_stun_addr = ms_ip_address_to_stun_address(pair->local->taddr.family, SOCK_DGRAM, pair->local->taddr.ip, pair->local->taddr.port);
memset(&recv_addr, 0, recv_addrlen);
......@@ -2627,7 +2626,6 @@ void ice_handle_stun_packet(IceCheckList *cl, RtpSession *rtp_session, const Ort
return;
}
memset(&recv_addr, 0, recv_addrlen);
memset(source_addr_str, 0, sizeof(source_addr_str));
memset(recv_addr_str, 0, sizeof(recv_addr_str));
tr_id = ms_stun_message_get_tr_id(msg);
......
......@@ -1466,7 +1466,6 @@ static int ms_turn_rtp_endpoint_recvfrom(RtpTransport *rtptp, mblk_t *msg, int f
struct sockaddr *relay_sa = (struct sockaddr *)&relay_ss;
socklen_t relay_sa_len = sizeof(relay_ss);
memset(relay_sa, 0, relay_sa_len);
memset(&relay_ss, 0, relay_sa_len);
/* Copy the data of the TURN data indication in the mblk_t so that it contains the unpacked data */
msgsize = ms_stun_message_get_data_length(stun_msg);
memcpy(msg->b_rptr, ms_stun_message_get_data(stun_msg), msgsize);
......@@ -1504,7 +1503,6 @@ static bool_t ms_turn_rtp_endpoint_send_via_turn_server(MSTurnContext *context,
socklen_t relay_sa_len = sizeof(relay_ss);
memset(relay_sa, 0, relay_sa_len);
memset(&relay_ss, 0, relay_sa_len);
ms_stun_address_to_sockaddr(&context->relay_addr, relay_sa, &relay_sa_len);
if (relay_sa->sa_family != from->sa_family) return FALSE;
if (relay_sa->sa_family == AF_INET) {
......
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