]> granicus.if.org Git - mutt/commitdiff
Zero out the PGP passphrase before asking for a new one.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 23 Jun 2004 08:09:43 +0000 (08:09 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 23 Jun 2004 08:09:43 +0000 (08:09 +0000)
pgp.c

diff --git a/pgp.c b/pgp.c
index ccc8e38ccd13971e7bfc3e135a8be79f0e5c568a..66bb33fb3a56ad9b46b548d67e1bab2bac85861d 100644 (file)
--- a/pgp.c
+++ b/pgp.c
@@ -74,6 +74,8 @@ int pgp_valid_passphrase (void)
   if (now < PgpExptime)
     /* Use cached copy.  */
     return 1;
+  
+  pgp_void_passphrase ();
 
   if (mutt_get_password (_("Enter PGP passphrase:"), PgpPass, sizeof (PgpPass)) == 0)
     {