]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
backport "Fix accidental RTCP/RTP linkage"
authorRussell Bryant <russell@russellbryant.com>
Fri, 26 Aug 2005 16:56:07 +0000 (16:56 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 26 Aug 2005 16:56:07 +0000 (16:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6419 65c4cc65-6c06-0410-ace0-fbb531ad65f3

rtp.c

diff --git a/rtp.c b/rtp.c
index 5a58a80c02eb64c08976cd158606674937bcef6f..79799fac914d2d79c702f26255429913a4728f90 100755 (executable)
--- a/rtp.c
+++ b/rtp.c
@@ -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));
                }
        }