[asterisk-commits] may: branch 1.8 r313142 - /branches/1.8/addons/chan_ooh323.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Apr 9 15:56:24 CDT 2011


Author: may
Date: Sat Apr  9 15:56:17 2011
New Revision: 313142

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=313142
Log:
fix trivial bug in ooh323_indicate on AST_CONTROL_SRC...
check p->rtp is not null

Modified:
    branches/1.8/addons/chan_ooh323.c

Modified: branches/1.8/addons/chan_ooh323.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/addons/chan_ooh323.c?view=diff&rev=313142&r1=313141&r2=313142
==============================================================================
--- branches/1.8/addons/chan_ooh323.c (original)
+++ branches/1.8/addons/chan_ooh323.c Sat Apr  9 15:56:17 2011
@@ -1256,10 +1256,14 @@
 	    }
 	 break;
 	case AST_CONTROL_SRCUPDATE:
-		ast_rtp_instance_update_source(p->rtp);
+		if (p->rtp) {
+			ast_rtp_instance_update_source(p->rtp);
+		}
 		break;
 	case AST_CONTROL_SRCCHANGE:
-		ast_rtp_instance_change_source(p->rtp);
+		if (p->rtp) {
+			ast_rtp_instance_change_source(p->rtp);
+		}
 		break;
 	case AST_CONTROL_CONNECTED_LINE:
 		if (!ast->connected.id.name.valid




More information about the asterisk-commits mailing list