[svn-commits] mmichelson: branch 1.8 r373735 - /branches/1.8/apps/app_voicemail.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Sep 25 16:11:41 CDT 2012


Author: mmichelson
Date: Tue Sep 25 16:11:38 2012
New Revision: 373735

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=373735
Log:
Fix error where improper IMAP greetings would be deleted.

(closes issue ASTERISK-20435)
Reported by: fhackenberger
Patches:
	asterisk-20435-imap-del-greeting.diff uploaded by Michael L. Young (License #5026)
	(with suggested modification made by me)


Modified:
    branches/1.8/apps/app_voicemail.c

Modified: branches/1.8/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/apps/app_voicemail.c?view=diff&rev=373735&r1=373734&r2=373735
==============================================================================
--- branches/1.8/apps/app_voicemail.c (original)
+++ branches/1.8/apps/app_voicemail.c Tue Sep 25 16:11:38 2012
@@ -1808,6 +1808,11 @@
 		return;
 	}
 
+	if (msgnum < 0) {
+		imap_delete_old_greeting(file, vms);
+		return;
+	}
+
 	/* find real message number based on msgnum */
 	/* this may be an index into vms->msgArray based on the msgnum. */
 	messageNum = vms->msgArray[msgnum];




More information about the svn-commits mailing list