From: Russell Bryant Date: Fri, 26 Aug 2005 16:56:07 +0000 (+0000) Subject: backport "Fix accidental RTCP/RTP linkage" X-Git-Tag: 1.0.11.1~31 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=5a80b57ccf15f17bc7797299d09fdd2ab75dc685;p=thirdparty%2Fasterisk.git backport "Fix accidental RTCP/RTP linkage" git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6419 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/rtp.c b/rtp.c index 5a58a80c02..79799fac91 100755 --- 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)); } }