diff options
| author | tb <> | 2022-12-08 18:34:00 +0000 |
|---|---|---|
| committer | tb <> | 2022-12-08 18:34:00 +0000 |
| commit | 53b1043cdd460baf4ecf23f34b867d304498d8c2 (patch) | |
| tree | d2bda696d24ac145ea9c28e18394675a334ac2a1 | |
| parent | d30f60e7eb24406d70bf01f67e7889de4f46c1e3 (diff) | |
| download | openbsd-53b1043cdd460baf4ecf23f34b867d304498d8c2.tar.gz openbsd-53b1043cdd460baf4ecf23f34b867d304498d8c2.tar.bz2 openbsd-53b1043cdd460baf4ecf23f34b867d304498d8c2.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. */ |
