summaryrefslogtreecommitdiff
path: root/pith/reply.c
diff options
context:
space:
mode:
Diffstat (limited to 'pith/reply.c')
-rw-r--r--pith/reply.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pith/reply.c b/pith/reply.c
index 3a75321e..ab4e97c2 100644
--- a/pith/reply.c
+++ b/pith/reply.c
@@ -1169,6 +1169,7 @@ reply_body(MAILSTREAM *stream, ENVELOPE *env, struct mail_bodystruct *orig_body,
else if(orig_body->subtype
&& !strucmp(orig_body->subtype, "alternative")
&& orig_body->nested.part
+ && orig_body->nested.part->next
&& orig_body->nested.part->next->body.type == TYPEMULTIPART
&& orig_body->nested.part->next->body.subtype
&& !strucmp(orig_body->nested.part->next->body.subtype, "MIXED"))