artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9097426
)
Make module_free() NULL safe
author
tb
<tb@openbsd.org>
Wed, 20 Mar 2024 21:21:03 +0000
(21:21 +0000)
committer
tb
<tb@openbsd.org>
Wed, 20 Mar 2024 21:21:03 +0000
(21:21 +0000)
ok jsing
lib/libcrypto/conf/conf_mod.c
patch
|
blob
|
history
diff --git
a/lib/libcrypto/conf/conf_mod.c
b/lib/libcrypto/conf/conf_mod.c
index
aab108a
..
f1a88c9
100644
(file)
--- a/
lib/libcrypto/conf/conf_mod.c
+++ b/
lib/libcrypto/conf/conf_mod.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: conf_mod.c,v 1.2
8 2023/07/20 15:05:30
tb Exp $ */
+/* $OpenBSD: conf_mod.c,v 1.2
9 2024/03/20 21:21:03
tb Exp $ */
/* Written by Stephen Henson (steve@openssl.org) for the OpenSSL
* project 2001.
*/
@@
-364,6
+364,9
@@
CONF_modules_unload(int all)
static void
module_free(CONF_MODULE *md)
{
+ if (md == NULL)
+ return;
+
free(md->name);
free(md);
}