diff options
author | Mark Spencer <markster@digium.com> | 2004-10-20 04:27:31 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-10-20 04:27:31 +0000 |
commit | 91cdb43004bd1f86c99a66ac7a2b5a259ecf8930 (patch) | |
tree | 1e4f7be322512a56aa718070fa29b45f66b199ba /apps/app_meetme.c | |
parent | 96a557c6bf43a86b9c52cf5afbec7c2225b3dd20 (diff) |
Fix potential segfault.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4037 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_meetme.c')
-rwxr-xr-x | apps/app_meetme.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c index 203678df9..e853dc87e 100755 --- a/apps/app_meetme.c +++ b/apps/app_meetme.c @@ -1464,14 +1464,17 @@ static int admin_exec(struct ast_channel *chan, void *data) { command = strsep(¶ms, "|"); caller = strsep(¶ms, "|"); - 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); |