[Asterisk-cvs] asterisk manager.c,1.49,1.50

markster at lists.digium.com markster at lists.digium.com
Mon May 24 11:14:44 CDT 2004


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

Modified Files:
	manager.c 
Log Message:
Fix potential segfault, add support for MacOS X locks


Index: manager.c
===================================================================
RCS file: /usr/cvsroot/asterisk/manager.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- manager.c	22 May 2004 04:11:22 -0000	1.49
+++ manager.c	24 May 2004 15:28:36 -0000	1.50
@@ -467,6 +467,10 @@
 		return 0;
 	}
 	chan = ast_get_channel_by_name_locked(name);
+	if (!chan) {
+		astman_send_error(s, m, "Channel not existant");
+		return 0;
+	}
 	if (strlen(name2))
 		chan2 = ast_get_channel_by_name_locked(name2);
 	res = ast_async_goto(chan, context, exten, pi);




More information about the svn-commits mailing list