summaryrefslogtreecommitdiff
path: root/lib/libcrypto
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-11-08 01:33:21 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-11-08 01:33:21 +0000
commit69188e65c7dc736b89c2758afde13514228b7c35 (patch)
treef3cd371945f90ee71fd64bd77a423a56afb5aa6a /lib/libcrypto
parent63467ca92b1bddfa693f120b4178c1476c3c8a0f (diff)
Ugh. Don't return the group after freeing it
CID 514612
Diffstat (limited to 'lib/libcrypto')
-rw-r--r--lib/libcrypto/ec/ec_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/ec/ec_lib.c b/lib/libcrypto/ec/ec_lib.c
index b961a2e17c6..f409df1a7ba 100644
--- a/lib/libcrypto/ec/ec_lib.c
+++ b/lib/libcrypto/ec/ec_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ec_lib.c,v 1.83 2024/11/06 09:14:40 tb Exp $ */
+/* $OpenBSD: ec_lib.c,v 1.84 2024/11/08 01:33:20 tb Exp $ */
/*
* Originally written by Bodo Moeller for the OpenSSL project.
*/
@@ -200,7 +200,7 @@ EC_GROUP_dup(const EC_GROUP *in_group)
err:
EC_GROUP_free(group);
- return group;
+ return NULL;
}
LCRYPTO_ALIAS(EC_GROUP_dup);