]> granicus.if.org Git - mutt/commitdiff
Fix #1444, Debian #178563. The details of this problem were tracked
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 13 Feb 2003 09:50:00 +0000 (09:50 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 13 Feb 2003 09:50:00 +0000 (09:50 +0000)
down by Steven Barker <steve@blckknght.org>.

pgp.c

diff --git a/pgp.c b/pgp.c
index 1af91c23cf66e54602e43208b0beef1eaf97c002..b0ccd6e047ff56b925e300a8d9c1293226d81d28 100644 (file)
--- a/pgp.c
+++ b/pgp.c
@@ -319,20 +319,20 @@ void pgp_application_pgp_handler (BODY *m, STATE *s)
          
          safe_fclose (&pgpin);
 
-         rv = mutt_wait_filter (thepid);
-
          if (s->flags & M_DISPLAY)
          {
            crypt_current_time (s, "PGP");
            rc = pgp_copy_checksig (pgperr, s->fpout);
-           if (rc == 0) have_any_sigs = 1;
-           if (rc || rv) maybe_goodsig = 0;
          }
          
          safe_fclose (&pgperr);
+         rv = mutt_wait_filter (thepid);
          
          if (s->flags & M_DISPLAY)
          {
+           if (rc == 0) have_any_sigs = 1;
+           if (rc || rv) maybe_goodsig = 0;
+
            state_putc ('\n', s);
            state_attach_puts (_("[-- End of PGP output --]\n\n"), s);
          }