diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-26 16:56:07 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-26 16:56:07 +0000 |
commit | a6bdba87d7e71353fb7276c8d1c9b14e00601f14 (patch) | |
tree | 3986f561d047a61b233d55e5e89bf35a4cc65423 | |
parent | fd5bb45c75ce94a5b356eb286e15a7759a774d5e (diff) |
backport "Fix accidental RTCP/RTP linkage"
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@6419 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | rtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -367,7 +367,7 @@ struct ast_frame *ast_rtcp_read(struct ast_rtp *rtp) /* Send to whoever sent to us */ if ((rtp->rtcp->them.sin_addr.s_addr != sin.sin_addr.s_addr) || (rtp->rtcp->them.sin_port != sin.sin_port)) { - memcpy(&rtp->them, &sin, sizeof(rtp->them)); + memcpy(&rtp->rtcp->them, &sin, sizeof(rtp->rtcp->them)); ast_log(LOG_DEBUG, "RTP NAT: Using address %s:%d\n", ast_inet_ntoa(iabuf, sizeof(iabuf), rtp->rtcp->them.sin_addr), ntohs(rtp->rtcp->them.sin_port)); } } |