summaryrefslogtreecommitdiff
path: root/usr.bin/openssl
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2021-12-26 15:28:38 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2021-12-26 15:28:38 +0000
commitf488f064a10dd86cf903423e9f05ae85db803dd9 (patch)
treeeedcf0f88a143c8b4c491de5acbdd4bf76c6e9f7 /usr.bin/openssl
parentad5254afa72cf3ac7e988f15bc1855dae4d3a2d6 (diff)
Plug leaks
CID 345111
Diffstat (limited to 'usr.bin/openssl')
-rw-r--r--usr.bin/openssl/speed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/openssl/speed.c b/usr.bin/openssl/speed.c
index 5b9b324493e..715ac89547d 100644
--- a/usr.bin/openssl/speed.c
+++ b/usr.bin/openssl/speed.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: speed.c,v 1.24 2021/12/12 20:35:40 tb Exp $ */
+/* $OpenBSD: speed.c,v 1.25 2021/12/26 15:28:37 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1425,7 +1425,7 @@ speed_main(int argc, char **argv)
if ((ctx = EVP_CIPHER_CTX_new()) == NULL) {
BIO_printf(bio_err, "Failed to "
"allocate cipher context.\n");
- return 0;
+ goto end;
}
if (decrypt)
EVP_DecryptInit_ex(ctx, evp_cipher, NULL, key16, iv);