summaryrefslogtreecommitdiffstats
path: root/crypto/modes
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2015-12-02 14:26:03 +0100
committerAndy Polyakov <appro@openssl.org>2015-12-10 12:36:25 +0100
commit44bf7119d67272dbbe3a96c58b842aff8d93c1b4 (patch)
treee157c5902f27899ef27dcd40e7ffcdd7d381bae7 /crypto/modes
parentc7b5b9f4b1ec24743da20926f50418ba9fa92e87 (diff)
modes/ocb128.c: fix overstep.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/modes')
-rw-r--r--crypto/modes/ocb128.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/modes/ocb128.c b/crypto/modes/ocb128.c
index 620675541d..3a3f7a8d93 100644
--- a/crypto/modes/ocb128.c
+++ b/crypto/modes/ocb128.c
@@ -162,7 +162,7 @@ static OCB_BLOCK *ocb_lookup_l(OCB128_CONTEXT *ctx, size_t idx)
if (!ctx->l)
return NULL;
}
- while (l_index <= idx) {
+ while (l_index < idx) {
ocb_double(ctx->l + l_index, ctx->l + l_index + 1);
l_index++;
}