diff options
-rw-r--r-- | src/regress/lib/libcrypto/bio/bio_chain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/bio/bio_chain.c b/src/regress/lib/libcrypto/bio/bio_chain.c index 1dbcdd0669..2fb6e7f872 100644 --- a/src/regress/lib/libcrypto/bio/bio_chain.c +++ b/src/regress/lib/libcrypto/bio/bio_chain.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio_chain.c,v 1.6 2022/12/08 18:33:20 tb Exp $ */ | 1 | /* $OpenBSD: bio_chain.c,v 1.7 2022/12/08 18:34:00 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> |
4 | * | 4 | * |
@@ -338,7 +338,7 @@ link_chains_at(size_t i, size_t j, int use_bio_push) | |||
338 | memset(A, 0, sizeof(A)); | 338 | memset(A, 0, sizeof(A)); |
339 | memset(B, 0, sizeof(B)); | 339 | memset(B, 0, sizeof(B)); |
340 | 340 | ||
341 | if (i > nitems(A) || j > nitems(B)) | 341 | if (i >= nitems(A) || j >= nitems(B)) |
342 | goto err; | 342 | goto err; |
343 | 343 | ||
344 | /* Create two linear chains of BIOs. */ | 344 | /* Create two linear chains of BIOs. */ |