mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
If the message file does not exist, just return harmlessly, instead of crashing.
(Closes issue #12108) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@105296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3845,7 +3845,9 @@ static int vm_forwardoptions(struct ast_channel *chan, struct ast_vm_user *vmu,
|
||||
strncat(textfile, ".txt", sizeof(textfile) - 1);
|
||||
strncat(backup, "-bak", sizeof(backup) - 1);
|
||||
|
||||
msg_cfg = ast_config_load(textfile);
|
||||
if (!(msg_cfg = ast_config_load(textfile))) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
*duration = 0;
|
||||
if ((duration_str = ast_variable_retrieve(msg_cfg, "message", "duration")))
|
||||
|
Reference in New Issue
Block a user