[svn-commits] tilghman: branch 1.2 r71750 - /branches/1.2/apps/app_voicemail.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jun 26 07:25:59 CDT 2007


Author: tilghman
Date: Tue Jun 26 07:25:58 2007
New Revision: 71750

URL: http://svn.digium.com/view/asterisk?view=rev&rev=71750
Log:
Issue 10062 - Trying to move a message without selecting one first results in memory corruption

Modified:
    branches/1.2/apps/app_voicemail.c

Modified: branches/1.2/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_voicemail.c?view=diff&rev=71750&r1=71749&r2=71750
==============================================================================
--- branches/1.2/apps/app_voicemail.c (original)
+++ branches/1.2/apps/app_voicemail.c Tue Jun 26 07:25:58 2007
@@ -5478,6 +5478,11 @@
 				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);




More information about the svn-commits mailing list