$NetBSD: patch-ba,v 1.2 2004/02/01 22:37:19 tron Exp $

--- pgp.c.orig	Wed Jan  9 16:39:28 2002
+++ pgp.c	Sun Feb  1 23:32:50 2004
@@ -55,7 +55,7 @@
 
 
 char PgpPass[STRING];
-static time_t PgpExptime = 0; /* when does the cached passphrase expire? */
+time_t PgpExptime = 0; /* when does the cached passphrase expire? */
 
 void pgp_void_passphrase (void)
 {
@@ -737,14 +737,14 @@
     
     if (pgp_copy_checksig  (pgperr, s->fpout) >= 0)
       badsig = 0;
-
-    safe_fclose (&pgperr);
     
     if ((rv = mutt_wait_filter (thepid)))
       badsig = -1;
     
      dprint (1, (debugfile, "pgp_verify_one: mutt_wait_filter returned %d.\n", rv));
   }
+
+  safe_fclose (&pgperr);
   
   state_attach_puts (_("[-- End of PGP output --]\n\n"), s);
   
