diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-26 12:30:59 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-26 12:30:59 +0000 |
commit | 7c5dab51d4f47e01092104ae09d8babd2d9a8898 (patch) | |
tree | ec091c8aac5bb1da0266d06e486cd12013be69de /apps | |
parent | 5f4c0aa10397a3496ef9245f434ae24886e93b92 (diff) |
Merged revisions 71751 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r71751 | tilghman | 2007-06-26 07:27:47 -0500 (Tue, 26 Jun 2007) | 10 lines
Merged revisions 71750 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r71750 | tilghman | 2007-06-26 07:25:58 -0500 (Tue, 26 Jun 2007) | 2 lines
Issue 10062 - Trying to move a message without selecting one first results in memory corruption
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71752 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 04396de2c..e183c0a2e 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -6902,6 +6902,11 @@ static int vm_execmain(struct ast_channel *chan, void *data) cmd = ast_play_and_wait(chan, "vm-nomore"); break; case '9': + if (vms.curmsg < 0 || vms.curmsg > vms.lastmsg) { + /* No message selected */ + cmd = 0; + break; + } if (useadsi) adsi_folders(chan, 1, "Save to folder..."); cmd = get_folder2(chan, "vm-savefolder", 1); |