diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-03 22:27:10 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-03 22:27:10 +0000 |
commit | 679a3ba054b40ce075e146a5ba8b75396bbede3e (patch) | |
tree | 0d5e0f6c4ff6cc668ba07b945cf9dcfcbcc728a8 /apps/app_voicemail.c | |
parent | e7cdd93b9a6b7ca76be96c7afa3fbea752eb6def (diff) |
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/branches/1.4@154066 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index fad92c6cb..b42e1e4fa 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -7740,7 +7740,7 @@ out: /* expunge message - use UID Expunge if supported on IMAP server*/ if (option_debug > 2) ast_log(LOG_DEBUG, "*** 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); |