[asterisk-commits] anthonyl: branch anthonyl/8434 r49633 - /team/anthonyl/8434/main/channel.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Jan 5 00:11:14 MST 2007


Author: anthonyl
Date: Fri Jan  5 01:11:13 2007
New Revision: 49633

URL: http://svn.digium.com/view/asterisk?view=rev&rev=49633
Log:
it is possible for ast_translate to return null, so i'm adding a small check for f before caling chan->tech->write()

Modified:
    team/anthonyl/8434/main/channel.c

Modified: team/anthonyl/8434/main/channel.c
URL: http://svn.digium.com/view/asterisk/team/anthonyl/8434/main/channel.c?view=diff&rev=49633&r1=49632&r2=49633
==============================================================================
--- team/anthonyl/8434/main/channel.c (original)
+++ team/anthonyl/8434/main/channel.c Fri Jan  5 01:11:13 2007
@@ -2651,7 +2651,8 @@
 			f = (chan->writetrans) ? ast_translate(chan->writetrans, f, 0) : f;
 		}
 		
-		res = chan->tech->write(chan, f);
+		if (f)  	
+			res = chan->tech->write(chan, f);
 		break;
 	case AST_FRAME_NULL:
 	case AST_FRAME_IAX:



More information about the asterisk-commits mailing list