]> granicus.if.org Git - mutt/commitdiff
Void the S/MIME passphrase before prompting the user to re-enter it.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 27 Jan 2005 19:18:15 +0000 (19:18 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 27 Jan 2005 19:18:15 +0000 (19:18 +0000)
Noted by TAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp>, but with
memset replaced by smime_void_passphrase().

smime.c

diff --git a/smime.c b/smime.c
index e05a8d2e5dfd9f3b46f95b1b430070fb669bd6e0..f6d43f0603f3577166e5b08cd753ce2f3935d3bb 100644 (file)
--- a/smime.c
+++ b/smime.c
@@ -102,6 +102,8 @@ int smime_valid_passphrase (void)
     /* Use cached copy.  */
     return 1;
 
+  smime_void_passphrase();
+  
   if (mutt_get_password (_("Enter SMIME passphrase:"), SmimePass, sizeof (SmimePass)) == 0)
     {
       SmimeExptime = time (NULL) + SmimeTimeout;