diff options
author | tb <> | 2022-12-08 18:34:00 +0000 |
---|---|---|
committer | tb <> | 2022-12-08 18:34:00 +0000 |
commit | 913b3be406969b850b0ff8eb156d17ebe74b5d94 (patch) | |
tree | d2bda696d24ac145ea9c28e18394675a334ac2a1 | |
parent | 90726732a8296cab841747d7ed68f43f8493545a (diff) | |
download | openbsd-913b3be406969b850b0ff8eb156d17ebe74b5d94.tar.gz openbsd-913b3be406969b850b0ff8eb156d17ebe74b5d94.tar.bz2 openbsd-913b3be406969b850b0ff8eb156d17ebe74b5d94.zip |
bio chain test: fix inconsequential off-by-one
-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. */ |