mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-15 08:04:47 -07:00
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@154066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user