From: Brendan Cully Date: Tue, 9 Aug 2005 17:41:31 +0000 (+0000) Subject: Move pgp failure check inside the if (invoke pgp) block. Should really X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c5f499364bc8fab39fa4346b7a9dfc7c029b4bc;p=neomutt Move pgp failure check inside the if (invoke pgp) block. Should really Close: 2032. --- diff --git a/pgp.c b/pgp.c index 564ecfc82..55f90ce94 100644 --- a/pgp.c +++ b/pgp.c @@ -378,16 +378,17 @@ void pgp_application_pgp_handler (BODY *m, STATE *s) state_attach_puts (_("[-- End of PGP output --]\n\n"), s); } } - } - - /* treat empty result as sign of failure */ - if (!(pgpout && ftell(pgpout))) - { - mutt_error _("Could not decrypt PGP message"); - pgp_void_passphrase (); - goto out; + /* treat empty result as sign of failure */ + if (!(pgpout && ftell(pgpout))) + { + mutt_error _("Could not decrypt PGP message"); + pgp_void_passphrase (); + + goto out; + } } + /* * Now, copy cleartext to the screen. NOTE - we expect that PGP * outputs utf-8 cleartext. This may not always be true, but it