[asterisk-commits] jpeeler: branch 1.4 r276652 - /branches/1.4/main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 15 08:49:01 CDT 2010


Author: jpeeler
Date: Thu Jul 15 08:48:58 2010
New Revision: 276652

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=276652
Log:
In a perfect world, the frame source would never be NULL. In the meantime, don't crash when it is.

Modified:
    branches/1.4/main/channel.c

Modified: branches/1.4/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/channel.c?view=diff&rev=276652&r1=276651&r2=276652
==============================================================================
--- branches/1.4/main/channel.c (original)
+++ branches/1.4/main/channel.c Thu Jul 15 08:48:58 2010
@@ -3044,7 +3044,7 @@
 		res = 0;	/* XXX explain, why 0 ? */
 		goto done;
 	}
-	if (chan->generatordata && strcasecmp(fr->src, "ast_prod")) {
+	if (chan->generatordata && (!fr->src || strcasecmp(fr->src, "ast_prod"))) {
 		if (ast_test_flag(chan, AST_FLAG_WRITE_INT)) {
 				ast_deactivate_generator(chan);
 		} else {




More information about the asterisk-commits mailing list