aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-03 22:28:12 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-03 22:28:12 +0000
commitc5aaf4afdc148638be0248ca36aeb006fed9cd0a (patch)
treee7720ec7fc26cf751a7956f594da1623d71c059c /apps/app_voicemail.c
parente4073fa6f6209736391f9eac4cd9efe929d3bf67 (diff)
Merged revisions 154066 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r154066 | tilghman | 2008-11-03 16:27:10 -0600 (Mon, 03 Nov 2008) | 5 lines Attempting to expunge a mailbox when the mailstream is NULL will crash Asterisk. (Closes issue #13829) Reported by: jaroth Patch by: me (modified jaroth's patch) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@154072 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index de08d99b3..d01ce3dcd 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -9296,7 +9296,7 @@ out:
#ifdef IMAP_STORAGE
/* expunge message - use UID Expunge if supported on IMAP server*/
ast_debug(3, "*** Checking if we can expunge, deleted set to %d, expungeonhangup set to %d\n",deleted,expungeonhangup);
- if (vmu && deleted == 1 && expungeonhangup == 1) {
+ if (vmu && deleted == 1 && expungeonhangup == 1 && vms.mailstream != NULL) {
#ifdef HAVE_IMAP_TK2006
if (LEVELUIDPLUS (vms.mailstream)) {
mail_expunge_full(vms.mailstream,NIL,EX_UID);