[Asterisk-cvs] asterisk/apps app_transfer.c,1.12,1.13

kpfleming kpfleming
Wed Sep 7 17:39:34 CDT 2005


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

Modified Files:
	app_transfer.c 
Log Message:
ensure that TRANSFERSTATUS can return FAILURE (issue #5146)


Index: app_transfer.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_transfer.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- app_transfer.c	22 Aug 2005 20:53:38 -0000	1.12
+++ app_transfer.c	7 Sep 2005 21:39:53 -0000	1.13
@@ -90,10 +90,11 @@
 
 	res = ast_transfer(chan, dest);
 
-	if (!res) {
+	if (res < 0) {
 		status = "FAILURE";
 		if (option_priority_jumping)
 			ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101);
+		res = 0;
 	} else {
 		status = "SUCCESS";
 		res = 0;




More information about the svn-commits mailing list