[Asterisk-cvs] asterisk rtp.c,1.92.2.15,1.92.2.16

russell russell
Fri Aug 26 12:54:27 CDT 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv7393

Modified Files:
      Tag: v1-0
	rtp.c 
Log Message:
backport "Fix accidental RTCP/RTP linkage"


Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.92.2.15
retrieving revision 1.92.2.16
diff -u -d -r1.92.2.15 -r1.92.2.16
--- rtp.c	24 Jun 2005 21:53:02 -0000	1.92.2.15
+++ rtp.c	26 Aug 2005 16:56:07 -0000	1.92.2.16
@@ -367,7 +367,7 @@
 		/* 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));
 		}
 	}




More information about the svn-commits mailing list