Skip to content

Commit

Permalink
rtpproxy: fix structure copying
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Jun 14, 2024
1 parent 1c3139a commit 80bee9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/rtpproxy/rtpproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -4793,7 +4793,7 @@ static int w_rtpproxy_recording(struct sip_msg *msg, str *callid,
else
while (media_start <= media_stop) {
vrec.vu[9].iov_base = int2str(media_start, (int *)&vrec.vu[9].iov_len);
vrec.vu[13] = vrec.vu[9];
memcpy(&vrec.vu[13], &vrec.vu[9], sizeof *vrec.vu);
send_rtpp_command(node, &vrec, nitems);
media_start++;
}
Expand Down Expand Up @@ -4834,7 +4834,7 @@ static int w_rtpproxy_stop_recording(struct sip_msg *msg, str *callid,
STR2IOVEC(*to_tag, vstrec.vu[7]);

vstrec.vu[5].iov_base = int2str(medianum, (int *)&vstrec.vu[5].iov_len);
vstrec.vu[9] = vstrec.vu[5];
memcpy(&vstrec.vu[9], &vstrec.vu[5], sizeof *vstrec.vu);
send_rtpp_command(node, &vstrec, vstrec.useritems);

return 1;
Expand Down

0 comments on commit 80bee9b

Please sign in to comment.