mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
Correct a condition from the prior patch that could happen in rare circumstances and cause a core dump. Thanks Qwell!
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@23988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2599,7 +2599,7 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_
|
||||
if (txt && EXISTS(dir,msgnum,fn,chan->language)) {
|
||||
fclose(txt);
|
||||
rename(tmptxtfile, txtfile);
|
||||
} else if (!EXISTS(dir,msgnum,fn,chan->language)) {
|
||||
} else if (txt && !EXISTS(dir,msgnum,fn,chan->language)) {
|
||||
if (option_debug)
|
||||
ast_log(LOG_DEBUG, "The recorded media file is gone, so we should remove the .txt file too!\n");
|
||||
fclose(txt);
|
||||
|
Reference in New Issue
Block a user