summaryrefslogtreecommitdiff
path: root/src/regress/lib
diff options
context:
space:
mode:
authortb <>2023-07-21 20:22:47 +0000
committertb <>2023-07-21 20:22:47 +0000
commit078e9563f35e0312fd210f7dbb062cc6db880cf9 (patch)
tree1b860b00e14def66f4a32dd2e27cc917889c6c3a /src/regress/lib
parent07a54cce53e33e532d676d25490c5b70d88fe5b6 (diff)
downloadopenbsd-078e9563f35e0312fd210f7dbb062cc6db880cf9.tar.gz
openbsd-078e9563f35e0312fd210f7dbb062cc6db880cf9.tar.bz2
openbsd-078e9563f35e0312fd210f7dbb062cc6db880cf9.zip
bio_asn1 tests: drop unneeded variable
Diffstat (limited to 'src/regress/lib')
-rw-r--r--src/regress/lib/libcrypto/bio/bio_asn1.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/bio/bio_asn1.c b/src/regress/lib/libcrypto/bio/bio_asn1.c
index 92a18d03ae..3eba1849bc 100644
--- a/src/regress/lib/libcrypto/bio/bio_asn1.c
+++ b/src/regress/lib/libcrypto/bio/bio_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bio_asn1.c,v 1.4 2023/05/02 09:30:37 tb Exp $ */ 1/* $OpenBSD: bio_asn1.c,v 1.5 2023/07/21 20:22:47 tb Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2023 Theo Buehler <tb@openbsd.org>
@@ -105,13 +105,12 @@ read_leak_cb(BIO *bio, int cmd, const char *argp, int argi, long argl, long ret)
105static int 105static int
106test_prefix_leak(void) 106test_prefix_leak(void)
107{ 107{
108 const char *data = "some data\n";
109 BIO *bio_in = NULL, *bio_out = NULL; 108 BIO *bio_in = NULL, *bio_out = NULL;
110 PKCS7 *pkcs7 = NULL; 109 PKCS7 *pkcs7 = NULL;
111 char set_me = 0; 110 char set_me = 0;
112 int failed = 1; 111 int failed = 1;
113 112
114 if ((bio_in = BIO_new_mem_buf(data, -1)) == NULL) 113 if ((bio_in = BIO_new_mem_buf("some data\n", -1)) == NULL)
115 goto err; 114 goto err;
116 115
117 BIO_set_callback(bio_in, read_leak_cb); 116 BIO_set_callback(bio_in, read_leak_cb);