Skip to content

Commit 25b4fb1

Browse files
Sashanesyr
authored andcommitted
evp_fetch: actually iterate on the fetch_entries array
1 parent 3eb9e61 commit 25b4fb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/evp_fetch.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,13 @@ void do_fetch(size_t num)
181181
* to be a multiple of the number of fetch entries therefore at the last
182182
* iteration we may not check all the algorithms.
183183
*/
184+
i = 0;
184185
do {
185186
/*
186187
* If we set a fetch type, always use that
187188
*/
188189
if (exclusive_fetch_type == FETCH_END) {
189-
j = i % array_size;
190+
j = i++ % array_size;
190191
fetch_alg = fetch_entries[j].alg;
191192
j = fetch_entries[j].ftype;
192193
} else {

0 commit comments

Comments
 (0)