[Asterisk-cvs] asterisk/apps app_meetme.c,1.62,1.63

markster at lists.digium.com markster at lists.digium.com
Wed Oct 20 00:23:12 CDT 2004


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

Modified Files:
	app_meetme.c 
Log Message:
Fix potential segfault.


Index: app_meetme.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_meetme.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- app_meetme.c	11 Oct 2004 15:40:24 -0000	1.62
+++ app_meetme.c	20 Oct 2004 04:27:31 -0000	1.63
@@ -1464,14 +1464,17 @@
 		command = strsep(&params, "|");
 		caller = strsep(&params, "|");
 		
-		ast_mutex_lock(&conflock);
+		if (!command) {
+			ast_log(LOG_WARNING, "MeetmeAdmin requires a command!\n");
+			ast_mutex_unlock(&conflock);
+			return -1;
+		}
 		cnf = confs;
 		while (cnf) {
 			if (strcmp(cnf->confno, conf) == 0) 
 				break;
 			cnf = cnf->next;
 		}
-		ast_mutex_unlock(&conflock);
 		
 		if (caller)
 			user = find_user(cnf, caller);




More information about the svn-commits mailing list