From: Thomas Roessler Date: Mon, 9 Sep 2002 20:53:46 +0000 (+0000) Subject: Fixing #1300. Noted by David Shaw . X-Git-Tag: mutt-1-5-2-rel~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47ade2d07e2623f5a2c1dac1be494327055908b1;p=mutt Fixing #1300. Noted by David Shaw . --- diff --git a/postpone.c b/postpone.c index 4f072978..c739f504 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; }