[svn-commits] file: branch 1.4 r116799 - /branches/1.4/channels/chan_skinny.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri May 16 15:28:12 CDT 2008


Author: file
Date: Fri May 16 15:28:11 2008
New Revision: 116799

URL: http://svn.digium.com/view/asterisk?view=rev&rev=116799
Log:
Check to make sure an RTP structure exists before calling ast_rtp_new_source on it.
(closes issue #12669)
Reported by: sbisker

Modified:
    branches/1.4/channels/chan_skinny.c

Modified: branches/1.4/channels/chan_skinny.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_skinny.c?view=diff&rev=116799&r1=116798&r2=116799
==============================================================================
--- branches/1.4/channels/chan_skinny.c (original)
+++ branches/1.4/channels/chan_skinny.c Fri May 16 15:28:11 2008
@@ -2863,7 +2863,9 @@
 	case AST_CONTROL_PROCEEDING:
 		break;
 	case AST_CONTROL_SRCUPDATE:
-		ast_rtp_new_source(sub->rtp);
+		if (sub->rtp) {
+			ast_rtp_new_source(sub->rtp);
+		}
 		break;
 	default:
 		ast_log(LOG_WARNING, "Don't know how to indicate condition %d\n", ind);




More information about the svn-commits mailing list