summaryrefslogtreecommitdiff
path: root/regress/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-12-08 18:33:21 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-12-08 18:33:21 +0000
commitb39ce82e151c53188c146218129c8879d369b90d (patch)
tree0bbaa463c6a0f3510aa0fa6f678f5d6c077cb3d1 /regress/lib
parent82c8970e5b09d9c06fffc09d821fe66aa160ea27 (diff)
bio chain test: minor readability tweaks
Diffstat (limited to 'regress/lib')
-rw-r--r--regress/lib/libcrypto/bio/bio_chain.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/regress/lib/libcrypto/bio/bio_chain.c b/regress/lib/libcrypto/bio/bio_chain.c
index dce864fdfa2..1dbcdd06699 100644
--- a/regress/lib/libcrypto/bio/bio_chain.c
+++ b/regress/lib/libcrypto/bio/bio_chain.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bio_chain.c,v 1.5 2022/12/08 18:16:28 tb Exp $ */
+/* $OpenBSD: bio_chain.c,v 1.6 2022/12/08 18:33:20 tb Exp $ */
/*
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
*
@@ -27,7 +27,7 @@
#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
#endif
-#define CHAIN_POP_LEN 5
+#define CHAIN_POP_LEN 5
#define LINK_CHAIN_A_LEN 8
#define LINK_CHAIN_B_LEN 5
@@ -360,8 +360,9 @@ link_chains_at(size_t i, size_t j, int use_bio_push)
/* If we push B[0] or set next to B[0], the oldhead chain is empty. */
if (j == 0) {
- oldhead_len = 0;
oldhead_start = NULL;
+ oldhead_end = NULL;
+ oldhead_len = 0;
}
if (use_bio_push) {
@@ -409,11 +410,11 @@ link_chains_at(size_t i, size_t j, int use_bio_push)
goto err;
/*
- * All sanity checks passed. We can now free the our chains
+ * All sanity checks passed. We can now free the chains
* with the BIO API without risk of leaks or double frees.
*/
- BIO_free_all(A[0]);
+ BIO_free_all(new_start);
BIO_free_all(oldhead_start);
BIO_free_all(oldtail_start);