diff options
author | Nikos Mavrogiannopoulos <nmav@crystal.(none)> | 2008-05-24 16:50:39 +0300 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@crystal.(none)> | 2008-05-24 16:50:39 +0300 |
commit | 8e354d7eb48e9afeacf10a99000f958c8fdd8a0c (patch) | |
tree | f27da63d702808ea39aeb48832458f2a93dd2013 /lib | |
parent | f01870e2dfd6b436f8488b0d9c27840dcea096f8 (diff) | |
download | gnutls-8e354d7eb48e9afeacf10a99000f958c8fdd8a0c.tar.gz |
added error check.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/opencdk/sig-check.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/opencdk/sig-check.c b/lib/opencdk/sig-check.c index 42268b433c..dde80e7391 100644 --- a/lib/opencdk/sig-check.c +++ b/lib/opencdk/sig-check.c @@ -388,7 +388,7 @@ cdk_pk_check_sigs (cdk_kbnode_t key, cdk_keydb_hd_t keydb, int *r_status) key_status |= CDK_KEY_REVOKED; if (node->pkt->pkt.public_key->has_expired) key_status |= CDK_KEY_EXPIRED; - + rc = 0; no_signer = 0; keyid = cdk_pk_get_keyid (node->pkt->pkt.public_key, NULL); @@ -398,7 +398,7 @@ cdk_pk_check_sigs (cdk_kbnode_t key, cdk_keydb_hd_t keydb, int *r_status) continue; sig = node->pkt->pkt.signature; rc = _cdk_pk_check_sig (keydb, key, node, &is_selfsig); - if (IS_UID_SIG (sig)) + if (rc == CDK_Success && IS_UID_SIG (sig)) { if (is_selfsig == 0) n_sigs++; |