]> granicus.if.org Git - mutt/commitdiff
Fixes for the previous patch.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 3 Apr 2001 17:31:35 +0000 (17:31 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 3 Apr 2001 17:31:35 +0000 (17:31 +0000)
pgpkey.c

index 648e50ff4d073d93c03c777525a96d770bcc89f6..3b4e1c92e7527af8a7259b6f00bb9cf297ae980b 100644 (file)
--- a/pgpkey.c
+++ b/pgpkey.c
@@ -434,7 +434,7 @@ static pgp_key_t *pgp_select_key (pgp_key_t *keys,
   pgp_uid_t *a;
   int (*f) (const void *, const void *);
 
-  int unsuable = 0;
+  int unusable = 0;
 
   keymax = 0;
   KeyTable = NULL;
@@ -468,6 +468,7 @@ static pgp_key_t *pgp_select_key (pgp_key_t *keys,
   if (!i && unusable)
   {
     mutt_error _("All matching keys are marked expired/revoked.");
+    sleep (1);
     return NULL;
   }
 
@@ -649,6 +650,8 @@ pgp_key_t *pgp_ask_for_key (char *tag, char *whatfor,
   char resp[SHORT_STRING];
   struct pgp_cache *l = NULL;
 
+  mutt_clear_error ();
+  
   resp[0] = 0;
   if (whatfor)
   {