diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2017-04-07 20:56:12 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-05-22 08:03:22 -0400 |
commit | 8368a3abb8a2f5d1bde3ba891b4ce2b082e4f512 (patch) | |
tree | eb33e418468bf4c80753c59c4626a71c344a83f0 /crypto/ct | |
parent | 3a490bbb1c9355bc0fefc50742ecc056d84332c1 (diff) | |
download | openssl-8368a3abb8a2f5d1bde3ba891b4ce2b082e4f512.zip openssl-8368a3abb8a2f5d1bde3ba891b4ce2b082e4f512.tar.gz openssl-8368a3abb8a2f5d1bde3ba891b4ce2b082e4f512.tar.bz2 |
Don't use a for-loop decleration
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3149)
Diffstat (limited to 'crypto/ct')
-rw-r--r-- | crypto/ct/ct_x509v3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/ct/ct_x509v3.c b/crypto/ct/ct_x509v3.c index c16005d..7e370f4 100644 --- a/crypto/ct/ct_x509v3.c +++ b/crypto/ct/ct_x509v3.c @@ -32,7 +32,8 @@ static int i2r_SCT_LIST(X509V3_EXT_METHOD *method, STACK_OF(SCT) *sct_list, static int set_sct_list_source(STACK_OF(SCT) *s, sct_source_t source) { if (s != NULL) { - for (size_t i = 0; i < sk_SCT_num(s); i++) { + size_t i; + for (i = 0; i < sk_SCT_num(s); i++) { int res = SCT_set_source( sk_SCT_value(s, i), SCT_SOURCE_X509V3_EXTENSION); if (res != 1) { |