summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-11-02 13:01:08 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-11-02 13:01:13 +0100
commit5b4bd9afeac9eaf9b2caa235196517bf0720ec5d (patch)
treef54f633ddc37c924aff7c8efaf3def918191a0b6
parente966f37a986d51de2e7116a3a5b1086726c55529 (diff)
downloadgnutls-5b4bd9afeac9eaf9b2caa235196517bf0720ec5d.tar.gz
small optimization in CRL check
-rw-r--r--lib/x509/verify.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/x509/verify.c b/lib/x509/verify.c
index 0f3e625f2d..0a61869cdf 100644
--- a/lib/x509/verify.c
+++ b/lib/x509/verify.c
@@ -989,7 +989,7 @@ _gnutls_verify_crl2 (gnutls_x509_crl_t crl,
/* CRL is ignored for now */
gnutls_datum_t crl_signed_data = { NULL, 0 };
gnutls_datum_t crl_signature = { NULL, 0 };
- gnutls_x509_crt_t issuer;
+ gnutls_x509_crt_t issuer = NULL;
int result, hash_algo;
time_t now = gnutls_time(0);
unsigned int usage;
@@ -999,13 +999,6 @@ _gnutls_verify_crl2 (gnutls_x509_crl_t crl,
if (tcas_size >= 1)
issuer = find_crl_issuer (crl, trusted_cas, tcas_size);
- else
- {
- gnutls_assert ();
- if (output)
- *output |= GNUTLS_CERT_SIGNER_NOT_FOUND | GNUTLS_CERT_INVALID;
- return 0;
- }
/* issuer is not in trusted certificate
* authorities.