From e4bf7b998590b3dad4c4482d75e596342edab95b Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Mon, 9 Sep 2002 20:53:46 +0000 Subject: [PATCH] Fixing #1300. Noted by David Shaw . --- postpone.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/postpone.c b/postpone.c index 4f072978a..c739f504e 100644 --- a/postpone.c +++ b/postpone.c @@ -556,12 +556,13 @@ int mutt_prepare_template (FILE *fp, CONTEXT *ctx, HEADER *newhdr, HEADER *hdr, goto err; mutt_message _("Invoking PGP..."); - if (pgp_decrypt_mime (fp, &bfp, newhdr->content, &b) == -1) + if (pgp_decrypt_mime (fp, &bfp, newhdr->content, &b) == -1 || b == NULL) { err: mx_close_message (&msg); mutt_free_envelope (&newhdr->env); mutt_free_body (&newhdr->content); + mutt_error _("Decryption failed."); return -1; } -- 2.40.0