[asterisk-commits] oej: branch oej/pinefrog-1.4 r293884 - /team/oej/pinefrog-1.4/main/rtp.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Nov 3 16:24:21 CDT 2010


Author: oej
Date: Wed Nov  3 16:24:17 2010
New Revision: 293884

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=293884
Log:
Prevent crashes... New code.

Modified:
    team/oej/pinefrog-1.4/main/rtp.c

Modified: team/oej/pinefrog-1.4/main/rtp.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/pinefrog-1.4/main/rtp.c?view=diff&rev=293884&r1=293883&r2=293884
==============================================================================
--- team/oej/pinefrog-1.4/main/rtp.c (original)
+++ team/oej/pinefrog-1.4/main/rtp.c Wed Nov  3 16:24:17 2010
@@ -2411,8 +2411,8 @@
 	if (!rtp || !rtp->rtcp) {
 		return;
 	}
-	ast_copy_string(rtp->rtcp->readtranslator, readtranslator, sizeof(rtp->rtcp->readtranslator));
-	ast_copy_string(rtp->rtcp->writetranslator, writetranslator, sizeof(rtp->rtcp->writetranslator));
+	ast_copy_string(rtp->rtcp->readtranslator, S_OR(readtranslator,""), sizeof(rtp->rtcp->readtranslator));
+	ast_copy_string(rtp->rtcp->writetranslator, S_OR(writetranslator,""), sizeof(rtp->rtcp->writetranslator));
 	rtp->rtcp->readcost = readcost;
 	rtp->rtcp->writecost = writecost;
 	




More information about the asterisk-commits mailing list