summaryrefslogtreecommitdiffstats
path: root/attach.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-12-28 14:59:04 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-12-28 14:59:04 +0000
commit47d09dafa148b19e88d1fdae947fd7dfafea5489 (patch)
treeb11f57c3bc3dbfd2a7f5699937abfc841e5f788b /attach.c
parent5fa9d8a6db21c71321b4862b8daf644583e10f64 (diff)
Fix a segmentation fault when viewing message/rfc822 attachments
from the compose screen.
Diffstat (limited to 'attach.c')
-rw-r--r--attach.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/attach.c b/attach.c
index c2b72aa1..a01fb762 100644
--- a/attach.c
+++ b/attach.c
@@ -314,7 +314,7 @@ int mutt_view_attachment (FILE *fp, BODY *a, int flag)
is_message = mutt_is_message_type(a->type, a->subtype);
#ifdef _PGPPATH
- if (is_message && (a->hdr->pgp & PGPENCRYPT) && !pgp_valid_passphrase())
+ if (is_message && a->hdr && (a->hdr->pgp & PGPENCRYPT) && !pgp_valid_passphrase())
return (rc);
#endif /* _PGPPATH */
use_mailcap = (flag == M_MAILCAP ||