diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-24 15:51:03 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-24 15:51:03 +0000 |
commit | c9b212e87a49271d22e127ecfe53c52f3f8f9abc (patch) | |
tree | 20f74ffa24f7a95e05b5f3ce088cd0d7956f252a /apps | |
parent | 4ac221c9bdb8a56b6deab4c4622beed22ef0c76d (diff) |
Fix a possible crash in IMAP voicemail.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@80750 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-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 2b20bd287..4c41ce445 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -4421,7 +4421,7 @@ static int play_message(struct ast_channel *chan, struct ast_vm_user *vmu, struc mail_fetchstructure (vms->mailstream,vms->msgArray[vms->curmsg],&body); /* We have the body, now we extract the file name of the first attachment. */ - if (body->nested.part->next && body->nested.part->next->body.parameter->value) { + if (body->nested.part && body->nested.part->next && body->nested.part->next->body.parameter->value) { attachedfilefmt = ast_strdupa(body->nested.part->next->body.parameter->value); } else { ast_log(LOG_ERROR, "There is no file attached to this IMAP message.\n"); |