[Asterisk-cvs] asterisk/apps app_queue.c,1.87,1.87.2.1

russell at lists.digium.com russell at lists.digium.com
Thu Nov 25 02:13:40 CST 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv20507/apps

Modified Files:
      Tag: v1-0
	app_queue.c 
Log Message:

Segfault if head caller times out of queue with moh running (bug 2891)


Index: app_queue.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_queue.c,v
retrieving revision 1.87
retrieving revision 1.87.2.1
diff -u -d -r1.87 -r1.87.2.1
--- app_queue.c	29 Sep 2004 14:06:59 -0000	1.87
+++ app_queue.c	25 Nov 2004 07:13:08 -0000	1.87.2.1
@@ -1704,7 +1704,7 @@
 			}
 		}
 		/* Don't allow return code > 0 */
-		if (res > 0 && res != AST_PBX_KEEPALIVE) {
+		if ((res == 0) || (res > 0 && res != AST_PBX_KEEPALIVE)) {
 			res = 0;	
 			if (ringing) {
 				ast_indicate(chan, -1);




More information about the svn-commits mailing list