aboutsummaryrefslogtreecommitdiffstats
path: root/g10/sig-check.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/sig-check.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/g10/sig-check.c b/g10/sig-check.c
index 2b3c6472c..c068e4409 100644
--- a/g10/sig-check.c
+++ b/g10/sig-check.c
@@ -75,9 +75,7 @@ signature_check2( PKT_signature *sig, MD_HANDLE digest,
}
else if( get_pubkey( pk, sig->keyid ) )
rc = G10ERR_NO_PUBKEY;
- else if(!pk->is_valid &&
- (pk->main_keyid[0]!=pk->keyid[0] ||
- pk->main_keyid[1]!=pk->keyid[1]))
+ else if(!pk->is_valid && !pk->is_primary)
rc=G10ERR_BAD_PUBKEY; /* you cannot have a good sig from an
invalid subkey */
else {