[svn-commits] russell: branch 1.4 r89886 - /branches/1.4/main/autoservice.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Nov 27 17:47:28 CST 2007


Author: russell
Date: Tue Nov 27 17:47:28 2007
New Revision: 89886

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89886
Log:
Don't do frame processing if ast_read() returned NULL.

Modified:
    branches/1.4/main/autoservice.c

Modified: branches/1.4/main/autoservice.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/autoservice.c?view=diff&rev=89886&r1=89885&r2=89886
==============================================================================
--- branches/1.4/main/autoservice.c (original)
+++ branches/1.4/main/autoservice.c Tue Nov 27 17:47:28 2007
@@ -89,6 +89,9 @@
 		chan = ast_waitfor_n(mons, x, &ms);
 		if (chan) {
 			struct ast_frame *f = ast_read(chan);
+	
+			if (!f)
+				continue;
 			
 			/* Do not add a default entry in this switch statement.  Each new
 			 * frame type should be addressed directly as to whether it should




More information about the svn-commits mailing list