]> granicus.if.org Git - mutt/commitdiff
Fix pgp_ignore_subkeys.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 6 Dec 2000 20:31:46 +0000 (20:31 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 6 Dec 2000 20:31:46 +0000 (20:31 +0000)
gnupgparse.c

index 20f8834ae80e98b9ce50772e23a739df6b30a4de..7be19517d3425195c707b227030f6a1cbd31b448 100644 (file)
@@ -216,8 +216,8 @@ static pgp_key_t *parse_pub_line (char *buf, int *is_subkey, pgp_key_t *k)
       {
        dprint (2, (debugfile, "key id: %s\n", p));
        
-       /* We really should do a check here */
-       mutt_str_replace (&k->keyid, p);
+       if (!(*is_subkey && option (OPTPGPIGNORESUB)))
+         mutt_str_replace (&k->keyid, p);
        break;
 
       }