diff options
author | Ben Laurie <ben@openssl.org> | 2008-09-07 13:22:34 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2008-09-07 13:22:34 +0000 |
commit | 43048d13c80ab0976cd8ee2119573ed182654dd1 (patch) | |
tree | 4b11c73d7501b257e07889e2fa93f583acb0dbd9 | |
parent | e8da6a1d0fd119e170df49e1f5e28f980794144d (diff) |
Fix warning.
-rw-r--r-- | crypto/x509/x509_vfy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index cb7936f2b3..5c94d3b1b8 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -820,10 +820,11 @@ static int get_crl_sk(X509_STORE_CTX *ctx, X509_CRL **pcrl, X509_CRL **pdcrl, STACK_OF(X509_CRL) *crls) { int i, crl_score, best_score = *pscore; - unsigned int reasons, best_reasons; + unsigned int reasons, best_reasons = 0; X509 *x = ctx->current_cert; X509_CRL *crl, *best_crl = NULL; X509 *crl_issuer, *best_crl_issuer = NULL; + for (i = 0; i < sk_X509_CRL_num(crls); i++) { crl = sk_X509_CRL_value(crls, i); |