]> granicus.if.org Git - mutt/commitdiff
Don't ftell pgp output file if there isn't one. Closes: #2032.
authorBrendan Cully <brendan@kublai.com>
Tue, 9 Aug 2005 16:55:01 +0000 (16:55 +0000)
committerBrendan Cully <brendan@kublai.com>
Tue, 9 Aug 2005 16:55:01 +0000 (16:55 +0000)
pgp.c

diff --git a/pgp.c b/pgp.c
index 515c3e596152738f52528147e49d8672cf649c27..564ecfc8284415a6c141b31a0d39f068bc3c367f 100644 (file)
--- a/pgp.c
+++ b/pgp.c
@@ -381,7 +381,7 @@ void pgp_application_pgp_handler (BODY *m, STATE *s)
       }
       
       /* treat empty result as sign of failure */
-      if (! ftell(pgpout))
+      if (!(pgpout && ftell(pgpout)))
       {
         mutt_error _("Could not decrypt PGP message");
         pgp_void_passphrase ();