dect
/
asterisk
Archived
13
0
Fork 0

Fix potential segfault.

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4037 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2004-10-20 04:27:31 +00:00
parent 7f76745da9
commit da8aca2f61
1 changed files with 5 additions and 2 deletions

View File

@ -1464,14 +1464,17 @@ static int admin_exec(struct ast_channel *chan, void *data) {
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);