projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a490bb
)
Don't use a for-loop decleration
author
Alex Gaynor
<alex.gaynor@gmail.com>
Sat, 8 Apr 2017 00:56:12 +0000
(20:56 -0400)
committer
Rich Salz
<rsalz@openssl.org>
Mon, 22 May 2017 12:03:22 +0000
(08:03 -0400)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3149)
crypto/ct/ct_x509v3.c
patch
|
blob
|
history
diff --git
a/crypto/ct/ct_x509v3.c
b/crypto/ct/ct_x509v3.c
index c16005dce10c8667551303fa9720047b11550c62..7e370f47d9ed2612b5068f30e928a15b180a76dd 100644
(file)
--- 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) {