diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-12-28 14:59:04 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-12-28 14:59:04 +0000 |
commit | 47d09dafa148b19e88d1fdae947fd7dfafea5489 (patch) | |
tree | b11f57c3bc3dbfd2a7f5699937abfc841e5f788b /attach.c | |
parent | 5fa9d8a6db21c71321b4862b8daf644583e10f64 (diff) |
Fix a segmentation fault when viewing message/rfc822 attachments
from the compose screen.
Diffstat (limited to 'attach.c')
-rw-r--r-- | attach.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 || |